Fix failing tests and remove sleep statement for GitHub Actions (#1432)
This commit is contained in:
2
.github/workflows/permissions.yml
vendored
2
.github/workflows/permissions.yml
vendored
@@ -58,7 +58,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Start Console, front-end app and initialize users/policies
|
- name: Start Console, front-end app and initialize users/policies
|
||||||
run: |
|
run: |
|
||||||
(./console server && sleep 180) & (make initialize-permissions && sleep 180)
|
(./console server) & (make initialize-permissions)
|
||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
uses: DevExpress/testcafe-action@latest
|
uses: DevExpress/testcafe-action@latest
|
||||||
|
|||||||
@@ -60,22 +60,20 @@ test("Start Diagnostic button can be clicked", async (t) => {
|
|||||||
.click(elements.startDiagnosticButton);
|
.click(elements.startDiagnosticButton);
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: Fix test failing sporadically on GitHub Actions
|
test("Download button exists after Diagnostic is completed", async (t) => {
|
||||||
|
const downloadExists = elements.downloadButton.exists;
|
||||||
|
await t
|
||||||
|
.navigateTo("http://localhost:9090/support/diagnostics")
|
||||||
|
.click(elements.startDiagnosticButton)
|
||||||
|
.expect(downloadExists).ok();
|
||||||
|
});
|
||||||
|
|
||||||
// test("Download button exists after Diagnostic is completed", async (t) => {
|
test("Download button is clickable after Diagnostic is completed", async (t) => {
|
||||||
// const downloadExists = elements.downloadButton.exists;
|
await t
|
||||||
// await t
|
.navigateTo("http://localhost:9090/support/diagnostics")
|
||||||
// .navigateTo("http://localhost:9090/support/diagnostics")
|
.click(elements.startDiagnosticButton)
|
||||||
// .click(elements.startDiagnosticButton)
|
.click(elements.downloadButton);
|
||||||
// .expect(downloadExists).ok();
|
});
|
||||||
// });
|
|
||||||
|
|
||||||
// test("Download button is clickable after Diagnostic is completed", async (t) => {
|
|
||||||
// await t
|
|
||||||
// .navigateTo("http://localhost:9090/support/diagnostics")
|
|
||||||
// .click(elements.startDiagnosticButton)
|
|
||||||
// .click(elements.downloadButton);
|
|
||||||
// });
|
|
||||||
|
|
||||||
test("Start New Diagnostic button exists after Diagnostic is completed", async (t) => {
|
test("Start New Diagnostic button exists after Diagnostic is completed", async (t) => {
|
||||||
const startNewDiagnosticButtonExists =
|
const startNewDiagnosticButtonExists =
|
||||||
|
|||||||
Reference in New Issue
Block a user