-
Notifications
You must be signed in to change notification settings - Fork 7
Playwright component testing #588
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7e1f32e
Move content of `/tests` to `/tests/jest` (#857)
bedrich-schindler 5d3d160
Introduce Playwright Component Testing (#857)
bedrich-schindler 73c5fab
Enable TypesScript for Playwright (#587)
bedrich-schindler 2f3433e
Transform Action jest tests into playwright (#592)
lukasbriza 938cba9
Update symlinks and remove contributing and releasing md from root (#…
lukasbriza 7c32953
Fix Playwright snapshots to match system fonts
bedrich-schindler 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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
############################### | ||
# Docker compose configuration # | ||
############################### | ||
|
||
# Host system port where the live documentation is to be made accessible | ||
COMPOSE_START_PORT=8000 | ||
|
||
# Host system port where Playwright Component Testing report is to be made accessible | ||
COMPOSE_PLAYWRIGHT_REPORT_PORT=9323 | ||
|
||
# Ownership of the files created in the container | ||
COMPOSE_UID=1000 | ||
COMPOSE_GID=1000 |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
########################### | ||
# Playwright configuration # | ||
########################### | ||
|
||
# Number of workers to use to run Playwright tests | ||
PW_WORKERS=1 | ||
|
||
# Port used by Playwright Component Testing to serve the test files | ||
PW_CT_PORT=3100 |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"extends": [ | ||
"@visionappscz/eslint-config-visionapps", | ||
"airbnb-typescript", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:deprecation/recommended", | ||
"plugin:typescript-sort-keys/recommended", | ||
], | ||
"env": { | ||
"browser": true, | ||
"jest": true | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.spec.tsx", | ||
"*.story.tsx", | ||
], | ||
"rules": { | ||
"@typescript-eslint/unbound-method": "off" | ||
} | ||
} | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"projectService": true, | ||
"project": "./tsconfig.json" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/consistent-type-definitions": ["error", "type"], | ||
"@typescript-eslint/consistent-type-exports": ["error"], | ||
"@typescript-eslint/consistent-type-imports": ["error"], | ||
"import/prefer-default-export": "off", | ||
"no-console": ["error"] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Playwright | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
- cron: '0 6 * * *' # daily at 6:00 UTC (7:00 CET, 8:00 CEST) | ||
|
||
jobs: | ||
test: | ||
name: Playwright | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: mcr.microsoft.com/playwright:v1.50.1-noble | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
|
||
- name: Print Node.js and npm version | ||
run: node --version && npm --version | ||
|
||
- name: Install | ||
run: npm ci | ||
|
||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
|
||
- name: Run Playwright tests and generate test report | ||
run: npm run test:playwright-ct:all | ||
|
||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
|
||
- name: Upload Playwright test report | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
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,8 +1,11 @@ | ||
/coverage | ||
/dist | ||
/node_modules | ||
/playwright-report/ | ||
/site | ||
/src/docs/_assets/generated/* | ||
/tests/playwright/.temp/ | ||
.env | ||
.env.playwright | ||
statistics.html | ||
!.gitkeep |
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 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.
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.
Uh oh!
There was an error while loading. Please reload this page.