Skip to content

Commit

Permalink
added wait time after cy.visit("/")
Browse files Browse the repository at this point in the history
  • Loading branch information
corrado1982 committed Aug 20, 2023
1 parent dcf2904 commit 1aaff48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/e2e/3-testing/login.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe("login test", () => {
it("can login and logout", () => {
// visit the page
cy.visit("/");
cy.wait(5000);
cy.wait(10000);

// check if the register modal exist
cy.get("#registerModal .btn").contains("Login").should("exist");
Expand Down Expand Up @@ -32,6 +32,7 @@ describe("login test", () => {
it("Should fail login with invalid credential and shown a message", () => {
// visit the login page
cy.visit("/"); // Replace 3000 with your port number
cy.wait(10000);

// check if the register modal exist
cy.get("#registerModal .btn").contains("Login").should("exist");
Expand Down

0 comments on commit 1aaff48

Please sign in to comment.