This commit is contained in:
@@ -1,16 +1,12 @@
|
|||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe("When Accounting user logs in", () => {
|
describe("When Accounting user logs in", () => {
|
||||||
it("should allow user all functionality available to them", () => {
|
it("should correctly run all functionality", () => {
|
||||||
// const dToday = new Date().toISOString().split("T")[0];
|
|
||||||
//const tNow = new Date().toISOString().split("T")[1];
|
//cleanest way to get dates for input using local time zone and date time control input acceptable values
|
||||||
|
const dNow=new Date();
|
||||||
const date=new Date();
|
const dToday=`${dNow.getFullYear()}-${(dNow.getMonth() + 1).toString().padStart(2, "0")}-${dNow.getDate().toString().padStart(2, "0")}`;
|
||||||
const dToday = new Date(date.getTime() - date.getTimezoneOffset() * 60000)
|
const tNow = `${dNow.getHours()}:${dNow.getMinutes()}`;
|
||||||
.toISOString()
|
const tOneHourFromNow = `${dNow.getHours()+1}:${dNow.getMinutes()}`;
|
||||||
.split("T")[0];
|
|
||||||
|
|
||||||
const tNow = `${date.getHours()}:${date.getMinutes()}`;
|
|
||||||
const tOneHourFromNow = `${date.getHours()+1}:${date.getMinutes()}`;
|
|
||||||
|
|
||||||
cy.visit("/login");
|
cy.visit("/login");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user