Revert "Giving more stability to our testcafe (#1582)" (#1584)

This commit is contained in:
Daniel Valdivia
2022-02-16 08:52:03 -08:00
committed by GitHub
parent 081df4b535
commit f6116c1624
2 changed files with 5 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ test("Download button exists after Diagnostic is completed", async (t) => {
.useRole(roles.diagnostics)
.navigateTo("http://localhost:9090/support/diagnostics")
.click(elements.startDiagnosticButton)
.wait(3000)
.expect(elements.downloadButton.exists)
.ok();
});
@@ -70,6 +71,7 @@ test("Download button is clickable after Diagnostic is completed", async (t) =>
.useRole(roles.diagnostics)
.navigateTo("http://localhost:9090/support/diagnostics")
.click(elements.startDiagnosticButton)
.wait(2000)
.click(elements.downloadButton);
});
@@ -78,6 +80,7 @@ test("Start New Diagnostic button exists after Diagnostic is completed", async (
.useRole(roles.diagnostics)
.navigateTo("http://localhost:9090/support/diagnostics")
.click(elements.startDiagnosticButton)
.wait(2000)
.expect(elements.startNewDiagnosticButton.exists)
.ok();
});
@@ -87,5 +90,6 @@ test("Start New Diagnostic button is clickable after Diagnostic is completed", a
.useRole(roles.diagnostics)
.navigateTo("http://localhost:9090/support/diagnostics")
.click(elements.startDiagnosticButton)
.wait(2000)
.click(elements.startNewDiagnosticButton);
});

View File

@@ -80,7 +80,7 @@ __init__() {
}
main() {
(yarn start &> /dev/null) & (./console server &> /dev/null) & (testcafe "chrome:headless" portal-ui/tests/permissions/ -q --skip-js-errors -c 3 --selector-timeout 10000)
(yarn start &> /dev/null) & (./console server &> /dev/null) & (testcafe "chrome:headless" portal-ui/tests/permissions/ -q --skip-js-errors -c 3)
cleanup
}