This commit is contained in:
@@ -25,15 +25,15 @@ describe("When Service user logs in", () => {
|
||||
|
||||
cy.url().should("include", "/ay-evaluate");
|
||||
|
||||
// //open nav pane
|
||||
// cy.get("[data-cy=navicon]").click();
|
||||
// cy.contains("- Service"); //part of name displayed at top
|
||||
//open nav pane
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
cy.contains("- Service"); //part of name displayed at top
|
||||
|
||||
// //USER OPTIONS
|
||||
// cy.get("[data-cy=home]").click();
|
||||
// cy.get("[data-cy='nav/home-user-settings']").click();
|
||||
// cy.url().should("include", "/home-user-settings");
|
||||
// cy.get("[data-cy='nativeDateTimeInput']").check({ force: true });
|
||||
//USER OPTIONS
|
||||
cy.get("[data-cy=home]").click();
|
||||
cy.get("[data-cy='nav/home-user-settings']").click();
|
||||
cy.url().should("include", "/home-user-settings");
|
||||
cy.get("[data-cy='nativeDateTimeInput']").check({ force: true });
|
||||
|
||||
//WORKORDER
|
||||
cy.get("[data-cy=navicon]").click();
|
||||
@@ -48,20 +48,22 @@ describe("When Service user logs in", () => {
|
||||
cy.get("[data-cy='woState:btnok']").click();
|
||||
cy.get("[data-cy='woAddress:open']").click();
|
||||
|
||||
cy.get("[data-cy=address]").type(`${Cypress.config("cyid")} street{enter}`);
|
||||
cy.get("[data-cy=address]").type(`${Cypress.config("cyid")} E. First St{enter}`);
|
||||
cy.get("[data-cy=city]").type("Los Angeles");
|
||||
cy.get("[data-cy=region]").type("California");
|
||||
cy.get("[data-cy=country]").type("United States");
|
||||
cy.get("[data-cy=country]").type("USA");
|
||||
cy.get("[data-cy=latitude]").type("34.052234");
|
||||
cy.get("[data-cy=longitude]").type("-118.243685");
|
||||
cy.get("[data-cy=region]").type("California");
|
||||
cy.get("[data-cy=region]").type("California");
|
||||
cy.get("[data-cy=region]").type("California");
|
||||
cy.get("[data-cy=region]").type("California");
|
||||
cy.get("[data-cy=region]").type("California");
|
||||
cy.get("[data-cy=region]").type("California");
|
||||
|
||||
cy.get("[data-cy=postAddress]").type(`Box ${Cypress.config("cyid")}`);
|
||||
cy.get("[data-cy=postCity]").type("Los Angeles");
|
||||
cy.get("[data-cy=postRegion]").type("CA");
|
||||
cy.get("[data-cy=postCountry]").type("US");
|
||||
cy.get("[data-cy=postCode]").type("90012");
|
||||
cy.get("[data-cy='woAddress:btnok']").click();
|
||||
|
||||
cy.get("[data-cy=notes]").type(`Test summary workorder information`);
|
||||
|
||||
// //LOGOUT
|
||||
// cy.get("[data-cy=navicon]").click();
|
||||
// cy.get("[data-cy=logout]").click();
|
||||
|
||||
Reference in New Issue
Block a user