Add waits in Teams e2e test (#721)

Waits will hopefully further reduce flakiness.

Add TODO for investigating possible bug in React code.
This commit is contained in:
Zach Wasserman
2021-05-04 16:18:09 -07:00
committed by GitHub
parent f4e4185a0e
commit bc42d9e03a
2 changed files with 7 additions and 0 deletions
@@ -18,6 +18,7 @@ describe("User invite and activation", () => {
cy.findByRole("button", { name: /^create$/i }).click();
// Ensure the email has been delivered
cy.wait(3000); // eslint-disable-line cypress/no-unnecessary-waiting
cy.logout();
+6
View File
@@ -17,6 +17,9 @@ describe("Teams flow", () => {
cy.findByRole("button", { name: /^create$/i }).click();
cy.visit("/settings/teams");
// Allow rendering to settle
// TODO this might represent a bug in the React code.
cy.wait(100); // eslint-disable-line cypress/no-unnecessary-waiting
cy.contains("Valor").get(".Select-arrow-zone").click();
@@ -30,6 +33,9 @@ describe("Teams flow", () => {
cy.findByRole("button", { name: /save/i }).click();
cy.visit("/settings/teams");
// Allow rendering to settle
// TODO this might represent a bug in the React code.
cy.wait(100); // eslint-disable-line cypress/no-unnecessary-waiting
cy.contains("Mystic").get(".Select-arrow-zone").click();