Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] testcafe ui tests experiment with firefox in ci #3457

Closed
wants to merge 8 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 34 additions & 29 deletions .github/workflows/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ jobs:
(CONSOLE_SUBPATH=/console/subpath ./console server ) & (make test-initialize-minio-nginx)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
run: npx testcafe "chrome:headless" web-app/tests/subpath-nginx/ -q --skip-js-errors -c 3

run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/subpath-nginx/ --skip-js-errors --debug-on-fail
- name: Clean up docker
if: always()
run: |
Expand Down Expand Up @@ -279,10 +279,11 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
run: npx testcafe "chrome:headless" web-app/tests/permissions-1/ -q --skip-js-errors -c 3
run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-1/ --skip-js-errors --debug-on-fail

- name: Clean up users & policies
run: |
Expand Down Expand Up @@ -331,11 +332,11 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
run: npx testcafe "chrome:headless" web-app/tests/permissions-2/ -q --skip-js-errors -c 3

run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-2/ --skip-js-errors --debug-on-fail
- name: Clean up users & policies
run: |
make cleanup-permissions
Expand Down Expand Up @@ -383,10 +384,11 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
run: npx testcafe "chrome:headless" web-app/tests/permissions-3/ -q --skip-js-errors -c 3
run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-3/ --skip-js-errors --debug-on-fail

- name: Clean up users & policies
run: |
Expand Down Expand Up @@ -435,12 +437,12 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
timeout-minutes: 10
run: npx testcafe "chrome:headless" web-app/tests/permissions-4/ --skip-js-errors

run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-4/ --skip-js-errors --debug-on-fail
all-permissions-5:
name: Permissions Tests Part 5
needs:
Expand Down Expand Up @@ -483,12 +485,12 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
timeout-minutes: 5
run: npx testcafe "chrome:headless" web-app/tests/permissions-5/ --skip-js-errors

run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-5/ --skip-js-errors --debug-on-fail
all-permissions-6:
name: Permissions Tests Part 6
needs:
Expand Down Expand Up @@ -531,12 +533,12 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
timeout-minutes: 5
run: npx testcafe "chrome:headless" web-app/tests/permissions-6/ --skip-js-errors

run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-6/ --skip-js-errors --debug-on-fail
all-permissions-7:
name: Permissions Tests Part 7
needs:
Expand Down Expand Up @@ -577,13 +579,14 @@ jobs:
- name: Start Console, front-end app and initialize users/policies
run: |
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
timeout-minutes: 5
run: npx testcafe "chrome:headless" web-app/tests/permissions-7/ --skip-js-errors

run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-7/ --skip-js-errors --debug-on-fail
all-permissions-8:
name: Permissions Tests Part 8
needs:
Expand Down Expand Up @@ -626,11 +629,12 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
timeout-minutes: 5
run: npx testcafe "chrome:headless" web-app/tests/permissions-8/ --skip-js-errors
run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-8/ --skip-js-errors --debug-on-fail

all-permissions-A:
name: Permissions Tests Part A
Expand Down Expand Up @@ -674,11 +678,11 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
run: npx testcafe "chrome:headless" web-app/tests/permissions-A/ --skip-js-errors -c 3

run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-A/ --skip-js-errors --debug-on-fail
- name: Clean up users & policies
run: |
make cleanup-permissions
Expand Down Expand Up @@ -725,10 +729,11 @@ jobs:
(./console server) & (make initialize-permissions)

- name: Install TestCafe
run: npm install [email protected]
run: npm install -g [email protected]

- name: Run TestCafe Tests
run: npx testcafe "chrome:headless" web-app/tests/permissions-B/ --skip-js-errors -c 3
run: |
npx testcafe "firefox:headless --disable-search-engine-choice-screen" web-app/tests/permissions-B/ --skip-js-errors --debug-on-fail

- name: Clean up users & policies
run: |
Expand Down
Loading