This commit is contained in:
1
e2e/support/dayjs.min.js
vendored
Normal file
1
e2e/support/dayjs.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,7 +1,11 @@
|
||||
/// <reference types="cypress" />
|
||||
|
||||
import dayjs from "../../../support/dayjs.min.js"
|
||||
|
||||
describe("When Service user logs in", () => {
|
||||
it("should correctly run all functionality", () => {
|
||||
//format for typing input and setting value is always YYYY-MM-DD for date and HH:MM in 24 hour time for time
|
||||
|
||||
const dNow = new Date();
|
||||
const dToday = `${dNow.getFullYear()}-${(dNow.getMonth() + 1)
|
||||
.toString()
|
||||
@@ -64,6 +68,10 @@ describe("When Service user logs in", () => {
|
||||
|
||||
cy.get("[data-cy=notes]").type(`Test summary workorder information`);
|
||||
|
||||
//complete by now plus 7 days
|
||||
cy.get("[data-cy='completeByDate:date']").type( dayjs().add(7,'day').format('YYYY-MM-DD'));
|
||||
cy.get("[data-cy='completeByDate:time']").type( dayjs().add(7,'day').format('HH:mm'));
|
||||
|
||||
// //LOGOUT
|
||||
// cy.get("[data-cy=navicon]").click();
|
||||
// cy.get("[data-cy=logout]").click();
|
||||
|
||||
Reference in New Issue
Block a user