Improve v3 compatibility e2e test reliability

I've ran the test 50 times in a row without errors locally in CLI, now. Let's see how it handles itself in CI.
This commit is contained in:
Bruno Bernardino 2022-06-23 08:27:45 +01:00
parent 004e9b8d08
commit 0e51950f48
No known key found for this signature in database
GPG Key ID: D1B0A69ADD114ECE
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ describe("v3 compatibility", () => {
cy.doWithin(["pl-app", "pl-items-list"], () => cy.get("pl-icon[icon='add']").click());
// Click create
cy.doWithin(["pl-app", "pl-create-item-dialog"], () => cy.get(".footer button.primary").click(), 100);
cy.doWithin(["pl-app", "pl-create-item-dialog"], () => cy.get(".footer button.primary").click(), 200);
cy.url().should("match", /\/items\/[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/);
@ -64,7 +64,7 @@ describe("v3 compatibility", () => {
// Close dialog
cy.get("pl-icon[icon='close']").click();
},
800
1200
);
cy.url().should("include", "/items");