Skip to content

Commit

Permalink
changed test:e2e workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseCSG committed Jun 14, 2024
1 parent 40836a2 commit ce7e459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: npm ci

- name: Start the server
run: npm run dev &
run: npm run build && npm run start &
env:
CYPRESS_CACHE_FOLDER: ~/.cache/Cypress

Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/signin.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ describe("Register", () => {
cy.get("label").contains("Department").click().type("QA");
cy.get("button").contains("Register").click();
cy.get("div").contains("Account created successfully.").should("exist");
cy.wait(8000);
cy.wait(15000);
cy.url().should("include", "/dashboard");
cy.visit("/profile");
cy.wait(8000);
cy.get("h2").contains("Cypress prueba");
cy.wait(15000);
cy.get("h2").contains("prueba");
});

it("Visits Register page, and signs up with an existing email", () => {
Expand Down

0 comments on commit ce7e459

Please sign in to comment.