Giving more stability to our testcafe (#1582)
This commit is contained in:
committed by
GitHub
parent
226e8eeef2
commit
e580af8205
@@ -61,7 +61,6 @@ 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();
|
||||
});
|
||||
@@ -71,7 +70,6 @@ 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);
|
||||
});
|
||||
|
||||
@@ -80,7 +78,6 @@ 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();
|
||||
});
|
||||
@@ -90,6 +87,5 @@ 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);
|
||||
});
|
||||
|
||||
@@ -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)
|
||||
(yarn start &> /dev/null) & (./console server &> /dev/null) & (testcafe "chrome:headless" portal-ui/tests/permissions/ -q --skip-js-errors -c 3 --selector-timeout 10000)
|
||||
cleanup
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user