-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/cypress to playwright migration (#3513)
* Begynt på migrering fra Cypress til Playwright * Mer playwright oppsett og mocking * Endret frontend oppsett til å støtte playwright og refaktorert en god del * Lagt til playwright tester og refaktorert alle referanser fra cypress over til playwright * Fjernet alt Cypress oppsett og migrert siste rest over til playwright * Setter opp sharding for playwright github actions * Lagt til fremgangsmåte for playwright i Readme
- Loading branch information
Showing
132 changed files
with
3,615 additions
and
3,314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Playwright Tests | ||
on: | ||
workflow_call: | ||
inputs: | ||
working-directory: | ||
type: string | ||
description: "The working directory for the job, e.g. apps/dolly-frontend (without leading/trailing slash)." | ||
required: true | ||
secrets: | ||
READER_TOKEN: | ||
required: true | ||
jobs: | ||
playwright-tests: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
shardIndex: [ 1, 2, 3, 4, 5 ] | ||
shardTotal: [ 5 ] | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
registry-url: https://npm.pkg.github.com/ | ||
scope: "@navikt" | ||
- name: Install dependencies | ||
working-directory: ${{ inputs.working-directory }}/src/main/js | ||
run: npm ci | ||
- name: Install Playwright Browsers | ||
working-directory: ${{ inputs.working-directory }}/src/main/js | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright tests | ||
working-directory: ${{ inputs.working-directory }}/src/main/js | ||
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
apps/dolly-frontend/src/main/js/cypress/e2e/BestillingDetaljer.cy.ts
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
apps/dolly-frontend/src/main/js/cypress/e2e/BestillingStatus.cy.ts
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
apps/dolly-frontend/src/main/js/cypress/e2e/DollySoek.cy.ts
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
apps/dolly-frontend/src/main/js/cypress/e2e/Endringsmelding.cy.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
83 changes: 0 additions & 83 deletions
83
apps/dolly-frontend/src/main/js/cypress/e2e/GruppeHeader.cy.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.