Add concurrency argument for Permission testing (#1510)

* Add concurrency argument for Permission testing

* Create group before trying to view table

* Increase wait duration for one of the Diagnostic tests
This commit is contained in:
Kaan Kabalak
2022-02-04 07:52:28 -08:00
committed by GitHub
parent 4e14ec2742
commit 9e843f4ba0
4 changed files with 10 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ jobs:
- name: Run TestCafe Tests
uses: DevExpress/testcafe-action@latest
with:
args: '"chrome:headless" portal-ui/tests/permissions/ --skip-js-errors '
args: '"chrome:headless" portal-ui/tests/permissions/ --skip-js-errors -c 3'
- name: Clean up users & policies
run: |

View File

@@ -61,7 +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(2000)
.wait(3000)
.expect(elements.downloadButton.exists)
.ok();
});

View File

@@ -106,7 +106,11 @@ test.before(async (t) => {
}
);
test("Groups table exists", async (t) => {
test.before(async (t) => {
// A user must be created as we need to choose a user from the dropdown
await functions.createUser(t);
await createGroup(t, "groups-table");
})("Groups table exists", async (t) => {
await t
.navigateTo("http://localhost:9090/identity/groups")
.expect(elements.table.exists)
@@ -115,6 +119,7 @@ test("Groups table exists", async (t) => {
test.before(async (t) => {
// A user must be created as we need to choose a user from the dropdown
await functions.createUser(t);
await createGroup(t, "disable-enable");
})("Created Group can be disabled and enabled back", async (t) => {
await t
@@ -130,6 +135,7 @@ test.before(async (t) => {
test.before(async (t) => {
// A user must be created as we need to choose a user from the dropdown
await functions.createUser(t);
await createGroup(t, "view-delete");
})("Created Group can be viewed and deleted", async (t) => {
await t

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)
(yarn start &> /dev/null) & (./console server &> /dev/null) & (testcafe "chrome:headless" portal-ui/tests/permissions/ -q --skip-js-errors -c 3)
cleanup
}