This commit is contained in:
2021-11-02 20:55:50 +00:00
parent 1d2e9326aa
commit 5f8580a5c4
2 changed files with 9 additions and 0 deletions

1
e2e/support/dayjs.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -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();