-
Notifications
You must be signed in to change notification settings - Fork 59
Test/playwright migration #1134
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
29 commits
Select commit
Hold shift + click to select a range
e034c73
test: migration to playwright (WIP)
sbaron-at-wiris f390e99
test: enable e2e tests to run locally
atomas-at-wiris 15bc671
test: remove cypress and add pw workflow
atomas-at-wiris c49bfbc
ci: fix e2e test execution
atomas-at-wiris 0bf9cd2
ci: fix e2e test execution
atomas-at-wiris 732612f
test: remove committed .only
atomas-at-wiris 0cb1eab
test: fix staging execution
atomas-at-wiris 9982cf3
test: add 1 worker in CI
atomas-at-wiris 55a3798
test: fix ports
atomas-at-wiris 353b3b7
test: correct ports in readme
atomas-at-wiris ccf5154
test: delete always from test action
atomas-at-wiris 7e10f74
test: deploy demos via serve-static to run e2e tests
atomas-at-wiris ac0b08a
test: fix tinymce8 e2e test run on ci
atomas-at-wiris 4184627
test: fix action for tinymce8
atomas-at-wiris 65f097f
test: limit ci time execution
atomas-at-wiris 17c12de
fix: renamed main by master in e2e workflow
atomas-at-wiris 67f91b3
ci: add blob reporter to e2e workflow
sbaron-at-wiris b86b850
test: re-enable ckeditor4 testing on CI
atomas-at-wiris b326550
test: update serve-static command
atomas-at-wiris 9a4dafb
chore: upload ck5 telemeter wasm file
atomas-at-wiris 0b6e318
ci: update ci tests ckeditor4 build
atomas-at-wiris 41695aa
test: fix tinymce8 port
atomas-at-wiris 9f33763
test: update e2e tests ci env variables management
atomas-at-wiris b50921c
test: update e2e tests docs
atomas-at-wiris b88018b
chore: revert ckeditor5 undesired changed files
atomas-at-wiris 7ae9f0a
test: delete duplicated e2e tests readme
atomas-at-wiris 2885444
ci: rename e2e tests action
atomas-at-wiris 2bf6cd9
test: remove list reporter duplicate
sbaron-at-wiris 1e94f83
test: add playwright extension
dadalid-at-wiris 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
146 changes: 0 additions & 146 deletions
146
.github/workflows/cypress-Run-tests-with-npm-packages.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| name: E2E Tests - All Editors | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| # Matrix strategy to enable per html editor parallelization | ||
| e2e-tests: | ||
| name: E2E Tests - ${{ matrix.editor }} | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| editor: | ||
| - generic | ||
| - ckeditor4 | ||
| - ckeditor5 | ||
| - froala | ||
| - tinymce5 | ||
| - tinymce6 | ||
| - tinymce7 | ||
| - tinymce8 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "23.x" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| yarn install | ||
| yarn playwright install --with-deps | ||
|
|
||
| - name: Build ${{ matrix.editor }} package | ||
| if: matrix.editor != 'tinymce8' | ||
| run: | | ||
| yarn nx build ${{ matrix.editor }} | ||
| yarn nx build html-${{ matrix.editor }} | ||
| env: | ||
| CKEDITOR4_API_KEY: ${{ secrets.CKEDITOR4_API_KEY }} | ||
| FROALA_API_KEY: ${{ secrets.FROALA_API_KEY }} | ||
|
|
||
| - name: Build tinymce8 packages | ||
| if: matrix.editor == 'tinymce8' | ||
| run: | | ||
| yarn nx build tinymce7 | ||
| yarn nx build html-tinymce8 | ||
|
|
||
| - name: Run E2E tests for ${{ matrix.editor }} | ||
| id: e2e | ||
| run: HTML_EDITOR=${{ matrix.editor }} PLAYWRIGHT_BLOB_OUTPUT_NAME=report-${{ matrix.editor }}.zip yarn test:e2e | ||
| continue-on-error: true | ||
| env: | ||
| CKEDITOR4_API_KEY: ${{ secrets.CKEDITOR4_API_KEY }} | ||
| FROALA_API_KEY: ${{ secrets.FROALA_API_KEY }} | ||
|
|
||
| - name: Publish test results for ${{ matrix.editor }} | ||
| uses: dorny/test-reporter@d61b558e8df85cb60d09ca3e5b09653b4477cea7 # v2.0.0 | ||
| with: | ||
| name: E2E Tests - ${{ matrix.editor }} | ||
| path: tests/e2e/test-results/results.xml | ||
| reporter: java-junit | ||
| fail-on-error: ${{ steps.e2e.outcome == 'failure' }} | ||
| continue-on-error: true | ||
|
|
||
| - name: Upload blob report for ${{ matrix.editor }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: blob-report-${{ matrix.editor }} | ||
| path: blob-report | ||
| retention-days: 1 | ||
|
|
||
| merge-reports: | ||
| if: always() | ||
| needs: [e2e-tests] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "23.x" | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install | ||
|
|
||
| - name: Download all blobs | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| path: all-blob-reports | ||
| pattern: blob-report-* | ||
| merge-multiple: true | ||
|
|
||
| - name: Merge into HTML Report | ||
| run: npx playwright merge-reports --reporter html ./all-blob-reports | ||
|
|
||
| - name: Upload Final HTML Report | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: final-playwright-report | ||
| path: playwright-report/ | ||
| retention-days: 2 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.