Skip to content

Commit

Permalink
test: more timeouts for E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal committed Feb 6, 2023
1 parent a3f3bbf commit 5bf042b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/integration/MarkingChildAsDropout.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("Scenario: Marking a child as dropout - E2E test", function () {

it("AND I should see the child when I activate the 'inactive' filter", function () {
// click on the button with the content "Inactive"
cy.get('[ng-reflect-placeholder="isActive"]').click();
cy.get('[ng-reflect-placeholder="isActive"]', { timeout: 10000 }).click();
cy.contains("span", "Inactive").should("be.visible").click();
// find at this table the name of child and it should exist
cy.get("table").contains(this.childName.trim()).should("exist");
Expand Down
3 changes: 3 additions & 0 deletions e2e/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Cypress.Commands.overwrite("visit", (originalFun, url, options) => {
cy.get("app-search", { timeout: 10000 }).should("be.visible");
// wait for demo data generation
cy.wait(4000);
cy.contains("div", "Generating sample data", {
timeout: 20000,
}).should("not.exist");
// wait for indexing
cy.contains("button", "Continue in background", { timeout: 10000 }).should(
"not.exist"
Expand Down

0 comments on commit 5bf042b

Please sign in to comment.