This commit is contained in:
2021-12-15 23:55:18 +00:00
parent a8c429d2de
commit 8a6aa33ea7

View File

@@ -48,6 +48,25 @@ describe("When Service user logs in", () => {
cy.chooseVSelect("woState:picker", "Scheduled");
cy.get("[data-cy='woState:btnok']").click();
//Signature
//First assert there is no signature currently
cy.get("[data-cy=sigImage]").should("not.exist");
//make a signature
cy.get('[data-cy="customerSignature"]').click();
//only cy click method actually does anything, trigger just seems to sort of simulate but no drawing happens
//"sign"
cy.get("[data-cy=sigCtrl] > .canvas")
.click("topLeft")
.click("topRight")
.click("center")
.click("bottomLeft")
.click("bottomRight");
cy.get('[data-cy="sigOK"]').click();
//validate there is a signature now
cy.get("[data-cy=sigImage]").should("exist");
//Address;
cy.get("[data-cy='woAddress:open']").click();
cy.get("[data-cy=address]").type(