Skip to content

Commit

Permalink
Merge pull request #2638 from bcgov/test/playwright-ci
Browse files Browse the repository at this point in the history
test: playwright failures
  • Loading branch information
dleard authored Dec 21, 2024
2 parents f1f81d6 + 9d598bd commit b6b165d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-nx-project-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:

- name: 📥 install Playwright Chromium
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
run: npx playwright install chromium
working-directory: ./bciers/apps/${{ inputs.nx_project }}-e2e

- name: 🎭 Run Playwright Tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-registration1-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: 📥 install Playwright Chromium
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
run: npx playwright install chromium
working-directory: ./bciers/apps/registration1

- name: 🎭 Run Playwright Tests
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ In the `bciers` directory:
- To run Vitest unit tests on a specific project: `yarn nx run {project}:test`.
- To run Vitest unit tests on all projects: `yarn nx run-many -t test`.
- To run playwright end-to-end tests: `nx run {project}:e2e` (For the first time, you may need to run `yarn playwright install --with-deps` to install the browsers)
- To run playwright end-to-end tests: `nx run {project}:e2e` (For the first time, you may need to run `yarn playwright install ` to install the browsers)
**Or**, you can use the scripts available in `bciers/package.json`
Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/testing/playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Playwright will be re-testing the element with the test id of status until the f

#### Prerequisites

- To run playwright end-to-end tests for the first time, you may need to run `yarn playwright install --with-deps` to install the browsers
- To run playwright end-to-end tests for the first time, you may need to run `yarn playwright install ` to install the browsers
Ensure you have the configuration from file `bciers/bciers/.env.local.example` in `bciers/bciers/.env.local` with values reflecting instructions in file `bciers/bciers/.env.local.example`

1.0 Ensure the server is running:
Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/testing/vitest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- To run Vitest unit tests on a specific project: `yarn nx run {project}:test`.
- To run Vitest unit tests on all projects: `yarn nx run-many -t test`.
- To run playwright end-to-end tests: `nx run {project}:e2e` (For the first time, you may need to run `yarn playwright install --with-deps` to install the browsers)
- To run playwright end-to-end tests: `nx run {project}:e2e` (For the first time, you may need to run `yarn playwright install ` to install the browsers)

**Or**, you can use the scripts available in `bciers/package.json`

Expand Down

0 comments on commit b6b165d

Please sign in to comment.