-
Notifications
You must be signed in to change notification settings - Fork 4.4k
test(e2e): Centralize cookie banner handling in global setup and cleanup test code #5333
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
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f108a32
fix(tests): improve cookie banner handling and refactor e2e setup
zoobestik 1f4585d
fix(e2e): update Playwright reporter for CI environments
zoobestik 2db0ab6
fix(ci): run all production compatible Playwright tests
zoobestik 96e3ad1
fix(ci): add branch filter for E2E production notifications
zoobestik f2b4d24
fix(e2e): refactor screenshot verification to use `checkScreenshot` f…
zoobestik bfabe74
fix(e2e): refine href matching for tooling section links in why.spec.ts
zoobestik d35cf66
fix(e2e): adjust CI command to include all Playwright tests
zoobestik fdad9f5
fix(ci): streamline E2E test dependencies and Docker setup
zoobestik 7eccac3
fix(e2e): update Playwright version and simplify e2e Docker setup
zoobestik 5e2d6a1
fix(e2e): update baseURL references in landings.spec.ts for consisten…
zoobestik e22cb94
fix(e2e): refine href matching for tooling section links in why.spec.ts
zoobestik 5d46b6e
fix(e2e): handle load state exception in server-side-use-cases.spec.ts
zoobestik 3756551
fix(e2e): improve customer link interaction in server-side-use-cases.…
zoobestik 60e57ca
fix(e2e): refine customer link testing with improved steps
zoobestik aa66b57
fix(test): refine isDevelopment utility function for URL validation
zoobestik 6f0f9e6
fix(e2e): update URL assertions for consistency with relative paths
zoobestik 8d909e1
fix(e2e): Replace absolute URLs with consistent relative path assertions
zoobestik 219abf2
fix(test): update isDevelopment logic for localhost detection
zoobestik 024dfd3
fix(test): update isDevelopment logic for localhost detection
zoobestik ff5bcd7
fix(e2e): update Playwright image to v1.57.0-noble
zoobestik b5b6583
fix(e2e): remove`closeExternalBanners` utility and fix education pages
zoobestik 1437510
fix(e2e): remove redundant timeouts and update isDevelopment logic
zoobestik 0b4538b
fix(e2e): update CSS paths and enhance screenshot handling
zoobestik f0da4cc
fix(e2e): improve test utilities and update CSS paths
zoobestik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -49,5 +49,6 @@ generated | |
| /reports* | ||
| /data/page_views_map.json | ||
| test-results | ||
| test/storage-state.json | ||
|
|
||
| public/data | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,34 +1,30 @@ | ||
| version: '3' | ||
| services: | ||
| nginx-server: | ||
| build: | ||
| context: . | ||
| dockerfile: ./dockerfiles/nginx-server/Dockerfile | ||
| ports: | ||
| - 8081:80 | ||
| image: nginx:stable-alpine | ||
| networks: | ||
| - network1 | ||
| - test-network | ||
| volumes: | ||
| - ./dist:/usr/share/nginx/html | ||
| healthcheck: | ||
| test: [ "CMD", "curl", "-f", "http://localhost" ] | ||
| interval: 30s | ||
| timeout: 10s | ||
| retries: 3 | ||
| test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost" ] | ||
| interval: 30s | ||
| timeout: 5s | ||
| retries: 3 | ||
|
|
||
| playwright: | ||
| build: | ||
| context: . | ||
| dockerfile: ./dockerfiles/playwright/Dockerfile | ||
| command: yarn run test:e2e:ci | ||
| image: mcr.microsoft.com/playwright:v1.57.0-noble | ||
| environment: | ||
| BASE_URL: "http://nginx-server" | ||
| WEBTEAM_UI_NPM_TOKEN: ${WEBTEAM_UI_NPM_TOKEN} | ||
| working_dir: /var/www | ||
| volumes: | ||
| - ./test/snapshots:/var/www/test/snapshots | ||
| - ./test-results:/var/www/test-results | ||
| - .:/var/www | ||
| command: sh -c "yarn install && yarn run test:e2e:ci" | ||
| depends_on: | ||
| nginx-server: | ||
| condition: service_healthy | ||
| networks: | ||
| - network1 | ||
| - test-network | ||
|
|
||
| networks: | ||
| network1: | ||
| test-network: |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is created each time the tests run, see shared account in all tests