This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user