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

migrate from cypress to playwright #1510

Merged
merged 31 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
eac7e20
add playwright tests
oliverabrahams Jun 3, 2024
cd45bd3
add playwright tests
oliverabrahams Jun 4, 2024
d7c00c4
remove unused files
oliverabrahams Jun 4, 2024
a77a934
rollback
oliverabrahams Jun 4, 2024
728599c
rollback
oliverabrahams Jun 4, 2024
b1de61a
git ignore
oliverabrahams Jun 4, 2024
e8db7b1
fix jest to not run playwright
oliverabrahams Jun 4, 2024
f994041
ensure playwright browsers are installed before running e2e in libs
sndrs Jun 4, 2024
4d0e7e7
remove cypress
oliverabrahams Jun 4, 2024
2707c10
remove cypress
oliverabrahams Jun 4, 2024
83be1f6
merge main
oliverabrahams Jun 4, 2024
32f94b6
remove cypress
oliverabrahams Jun 4, 2024
b1e6f6a
revert pnpm lock-file
oliverabrahams Jun 4, 2024
34d1ac1
debugging ci
oliverabrahams Jun 4, 2024
4a560a1
debugging ci
oliverabrahams Jun 4, 2024
147968f
add playwright report
oliverabrahams Jun 4, 2024
1e5c252
add playwright report
oliverabrahams Jun 4, 2024
510a977
add playwright report
oliverabrahams Jun 4, 2024
4527be2
WIP potential fix
oliverabrahams Jun 4, 2024
123f312
reduced retention for playwright tests
oliverabrahams Jun 4, 2024
04872c7
Merge branch 'main' into oa/playwright-v2
oliverabrahams Jun 4, 2024
f78cc6b
fixed caching for playwright
oliverabrahams Jun 5, 2024
3a065ab
convert example to js
oliverabrahams Jun 5, 2024
526bf7d
move install step into e2e command
oliverabrahams Jun 5, 2024
42dbd73
remove install cmd
oliverabrahams Jun 5, 2024
f7e34d8
add e2e:ui command
oliverabrahams Jun 6, 2024
bf32867
Merge branch 'main' into oa/playwright-v2
oliverabrahams Jun 6, 2024
9f89915
Merge branch 'main' into oa/playwright-v2
sndrs Jun 11, 2024
83e6a51
re-run precommit hooks
sndrs Jun 11, 2024
a1aaed3
remove cypress stuff from setup action
sndrs Jun 11, 2024
c236f00
collapse deps
sndrs Jun 11, 2024
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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:

- run: make ${{ matrix.task }}

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() && matrix.task == 'e2e' }}
with:
name: playwright-report
path: ./libs/@guardian/libs/playwright-report/
retention-days: 14

chromatic:
needs: validate
uses: ./.github/workflows/chromatic.yml
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ tsconfig.tsbuildinfo
# Speed up eslint
.eslintcache

**/cypress/screenshots

# wireit cache dirs
# https://github.com/google/wireit
.wireit

# storybook build dirs
storybook-static

# cypress stuff
**/cypress/downloads/
# playwright stuff
**/test-results/
**/playwright-report/
**/blob-report/
**/playwright/.cache/
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ install: check-node-version
@guardian/libs\:e2e: env
@corepack pnpm --filter @guardian/libs e2e

.PHONY: @guardian/libs\:e2e\:ui
@guardian/libs\:e2e\:ui: env
@corepack pnpm --filter @guardian/libs e2e

.PHONY: @guardian/libs\:fix
@guardian/libs\:fix: env
@corepack pnpm --filter @guardian/libs fix
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Project-specific tasks are defined as `scripts` in a `package.json` or `targets`
- `make @guardian/libs:build`
- `make @guardian/libs:dev`
- `make @guardian/libs:e2e`
- `make @guardian/libs:e2e:ui`
- `make @guardian/libs:fix`
- `make @guardian/libs:lint`
- `make @guardian/libs:test`
Expand Down
21 changes: 0 additions & 21 deletions libs/@guardian/libs/cypress.config.mjs

This file was deleted.

11 changes: 0 additions & 11 deletions libs/@guardian/libs/cypress/.eslintrc.json

This file was deleted.

This file was deleted.

Loading
Loading