Repository navigation
Add playwright tests for new PRs #221
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
13 commits
Select commit
Hold shift + click to select a range
69bd255
add: playwright action
sirpy a530c63
Fix Playwright CI test expectations
Copilot 19e7f91
Include test results directory in workflow
sirpy 2334e6e
Require exact GoodReserve amount text
Copilot 4a918b7
Merge branch 'main' into feat/add-playwright-tests
sirpy 8a4f5ae
chore: start playwright demo CI fix
Copilot 04ec9a3
test: align governance onboarding playwright selectors
Copilot a6e409a
ci: fall back to demo Reown id for playwright tests
Copilot 091890b
ci: gate playwright demo job on secret availability
Copilot f998614
ci: authorize forked playwright demo runs
Copilot 06905ee
ci: split playwright PR triggers by repo origin
Copilot 5bf6a91
chore: checkpoint playwright regression fixes
Copilot c866fce
fix: align governance footer bounds with widget width
Copilot 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 |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| name: Playwright Demo Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - '.github/workflows/playwright-demo-tests.yml' | ||
| - 'docs/demo-environment.md' | ||
| - 'docs/qa-guide.md' | ||
| - 'examples/storybook/**' | ||
| - 'packages/**' | ||
| - 'playwright.config.ts' | ||
| - 'tests/**' | ||
| - 'package.json' | ||
| - 'pnpm-lock.yaml' | ||
| - 'pnpm-workspace.yaml' | ||
| pull_request: | ||
| types: [opened, synchronize, edited, ready_for_review] | ||
| paths: | ||
| - '.github/workflows/playwright-demo-tests.yml' | ||
| - 'docs/demo-environment.md' | ||
| - 'docs/qa-guide.md' | ||
| - 'examples/storybook/**' | ||
| - 'packages/**' | ||
| - 'playwright.config.ts' | ||
| - 'tests/**' | ||
| - 'package.json' | ||
| - 'pnpm-lock.yaml' | ||
| - 'pnpm-workspace.yaml' | ||
| pull_request_target: | ||
| types: [opened, synchronize, edited, ready_for_review] | ||
| paths: | ||
| - '.github/workflows/playwright-demo-tests.yml' | ||
| - 'docs/demo-environment.md' | ||
| - 'docs/qa-guide.md' | ||
| - 'examples/storybook/**' | ||
| - 'packages/**' | ||
| - 'playwright.config.ts' | ||
| - 'tests/**' | ||
| - 'package.json' | ||
| - 'pnpm-lock.yaml' | ||
| - 'pnpm-workspace.yaml' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| authorize-tests: | ||
| if: github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository | ||
| runs-on: ubuntu-latest | ||
| environment: external | ||
| steps: | ||
| - run: true | ||
|
|
||
| playwright-demo: | ||
| if: >- | ||
| ${{ | ||
| always() && ( | ||
| github.event_name == 'push' || | ||
| (github.event_name == 'pull_request' && | ||
| github.event.pull_request.head.repo.full_name == github.repository) || | ||
| (github.event_name == 'pull_request_target' && | ||
| github.event.pull_request.head.repo.full_name != github.repository && | ||
| needs.authorize-tests.result == 'success') | ||
| ) | ||
| }} | ||
| needs: authorize-tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout approved fork pull request head | ||
| if: github.event_name == 'pull_request_target' | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| allow-unsafe-pr-checkout: true | ||
| persist-credentials: false | ||
|
|
||
| - name: Checkout pull request head | ||
| if: github.event_name == 'pull_request' | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| persist-credentials: false | ||
|
|
||
| - name: Checkout | ||
| if: github.event_name == 'push' | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 9.15.0 | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: pnpm | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build packages | ||
| run: pnpm run build | ||
|
|
||
| - name: Install Playwright browsers | ||
| run: pnpm exec playwright install chromium --with-deps | ||
|
|
||
| - name: Check Playwright demo configuration | ||
| env: | ||
| VITE_REOWN_PROJECT_ID: ${{ secrets.VITE_REOWN_PROJECT_ID }} | ||
| run: | | ||
| if [ -z "${VITE_REOWN_PROJECT_ID}" ]; then | ||
| echo "::error title=Missing VITE_REOWN_PROJECT_ID::Set the VITE_REOWN_PROJECT_ID repository secret so the AppKit-backed Playwright stories can run in CI." | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Run Playwright demo tests | ||
| env: | ||
| VITE_REOWN_PROJECT_ID: ${{ secrets.VITE_REOWN_PROJECT_ID }} | ||
| run: | | ||
| if [ -z "${VITE_REOWN_PROJECT_ID}" ]; then | ||
| echo "::error title=Missing VITE_REOWN_PROJECT_ID::Set the VITE_REOWN_PROJECT_ID repository secret so the AppKit-backed Playwright stories can run in CI." | ||
| exit 1 | ||
| fi | ||
| pnpm test:demo | ||
|
|
||
| - name: Upload Playwright artifacts | ||
| if: failure() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: playwright-demo-artifacts | ||
| path: | | ||
| playwright-report | ||
| test-results | ||
| tests/**/test-results | ||
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
Binary file modified
BIN
-414 Bytes
(99%)
tests/design-system/test-results/claimwidget-dark-gwv2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.78 KB
(94%)
tests/design-system/test-results/claimwidget-light-gooddapp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+755 Bytes
(110%)
tests/design-system/test-results/story-barchart-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+343 Bytes
(110%)
tests/design-system/test-results/story-barchart-empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.59 KB
(110%)
tests/design-system/test-results/story-barchart-horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+889 Bytes
(110%)
tests/design-system/test-results/story-barchart-responsive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.93 KB
(130%)
tests/design-system/test-results/story-barchart-stress-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.12 KB
(120%)
tests/design-system/test-results/story-barchart-stress-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.18 KB
(110%)
tests/design-system/test-results/story-barchart-stress-1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.11 KB
(130%)
tests/design-system/test-results/story-claimwidget-cobalt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.04 KB
(130%)
tests/design-system/test-results/story-claimwidget-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+439 Bytes
(100%)
tests/design-system/test-results/story-datatable-compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+177 Bytes
(100%)
tests/design-system/test-results/story-datatable-controllable-width.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.86 KB
(110%)
tests/design-system/test-results/story-datatable-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+885 Bytes
(110%)
tests/design-system/test-results/story-datatable-empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+897 Bytes
(110%)
tests/design-system/test-results/story-datatable-stress-10-columns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.24 KB
(110%)
tests/design-system/test-results/story-datatable-stress-100-columns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.3 KB
(110%)
tests/design-system/test-results/story-datatable-stress-1000-rows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.29 KB
(120%)
tests/design-system/test-results/story-datatable-stress-50-columns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.32 KB
(100%)
tests/design-system/test-results/story-glowcard-default.png
Oops, something went wrong.
Binary file modified
BIN
+1.13 KB
(110%)
tests/design-system/test-results/story-lineareachart-default.png
Oops, something went wrong.
Binary file modified
BIN
+343 Bytes
(110%)
tests/design-system/test-results/story-lineareachart-empty.png
Oops, something went wrong.
Binary file modified
BIN
-611 Bytes
(96%)
tests/design-system/test-results/story-lineareachart-gap.png
Oops, something went wrong.
Binary file modified
BIN
+313 Bytes
(100%)
tests/design-system/test-results/story-lineareachart-multiaxis.png
Oops, something went wrong.
Binary file modified
BIN
+661 Bytes
(100%)
tests/design-system/test-results/story-lineareachart-responsive.png
Oops, something went wrong.
Binary file modified
BIN
+146 Bytes
(100%)
tests/design-system/test-results/story-lineareachart-single.png
Oops, something went wrong.
Binary file modified
BIN
+1.65 KB
(110%)
tests/design-system/test-results/story-lineareachart-step.png
Oops, something went wrong.
Binary file modified
BIN
+2.86 KB
(110%)
tests/design-system/test-results/story-lineareachart-stress-10.png
Oops, something went wrong.
Binary file modified
BIN
+3.98 KB
(110%)
tests/design-system/test-results/story-lineareachart-stress-100.png
Oops, something went wrong.
Binary file modified
BIN
+3.71 KB
(110%)
tests/design-system/test-results/story-lineareachart-stress-1000.png
Oops, something went wrong.
Binary file modified
BIN
+384 Bytes
(100%)
tests/design-system/test-results/story-lineareachart-stress-manyseries.png
Oops, something went wrong.
Binary file modified
BIN
+4.79 KB
(110%)
tests/design-system/test-results/story-lineareachart-stress.png
Oops, something went wrong.
Binary file modified
BIN
+573 Bytes
(100%)
tests/design-system/test-results/story-piedonutchart-default.png
Oops, something went wrong.
Binary file modified
BIN
+442 Bytes
(100%)
tests/design-system/test-results/story-piedonutchart-empty.png
Oops, something went wrong.
Binary file modified
BIN
+686 Bytes
(100%)
tests/design-system/test-results/story-piedonutchart-purepie.png
Oops, something went wrong.
Binary file modified
BIN
+274 Bytes
(100%)
tests/design-system/test-results/story-piedonutchart-stress.png
Oops, something went wrong.
Binary file modified
BIN
+2.53 KB
(110%)
tests/design-system/test-results/story-scorecard-default.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+390 Bytes
(100%)
tests/design-system/test-results/story-tokenamount-default.png
Oops, something went wrong.
Binary file modified
BIN
+3.19 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-01-disconnected.png
Oops, something went wrong.
Binary file modified
BIN
+4.79 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-02-purchase-setup.png
Oops, something went wrong.
Binary file modified
BIN
+4.26 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-03-quote-ready.png
Oops, something went wrong.
Binary file modified
BIN
+4.04 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-04-quote-ready-goodid.png
Oops, something went wrong.
Binary file modified
BIN
+2.83 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-05-payment-pending.png
Oops, something went wrong.
Binary file modified
BIN
+2.88 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-06-payment-confirmed.png
Oops, something went wrong.
Binary file modified
BIN
+4.27 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-07-credits-management.png
Oops, something went wrong.
Binary file modified
BIN
+1.97 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-08-insufficient-g-balance.png
Oops, something went wrong.
Binary file modified
BIN
+3.97 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-09-payment-failed.png
Oops, something went wrong.
Binary file modified
BIN
+3.22 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-10-backend-unavailable.png
Oops, something went wrong.
Binary file modified
BIN
+2.57 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-11-unsupported-chain.png
Oops, something went wrong.
Binary file modified
BIN
+2.8 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-12-connecting.png
Oops, something went wrong.
Binary file modified
BIN
+5.38 KB
(110%)
tests/widgets/ai-credits-widget/test-results/acw-13-history-tab.png
Oops, something went wrong.
Binary file modified
BIN
-1.93 KB
(98%)
tests/widgets/ai-credits-widget/test-results/acw-14-appkit-connect-before.png
Oops, something went wrong.
Binary file modified
BIN
-11 KB
(91%)
tests/widgets/ai-credits-widget/test-results/acw-14-appkit-connect-modal-open.png
Oops, something went wrong.
Binary file modified
BIN
+3.82 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-15-buy-tab-error.png
Oops, something went wrong.
Binary file modified
BIN
+4.35 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-15-multi-signer-manage.png
Oops, something went wrong.
Binary file modified
BIN
+2.81 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-16-deep-link-signer.png
Oops, something went wrong.
Binary file modified
BIN
+5.52 KB
(110%)
tests/widgets/ai-credits-widget/test-results/acw-17-multi-signer-history.png
Oops, something went wrong.
Binary file modified
BIN
+5.03 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-18-import-key-link.png
Oops, something went wrong.
Binary file modified
BIN
-3.04 KB
(98%)
tests/widgets/ai-credits-widget/test-results/acw-19-deep-link-consent-pending.png
Oops, something went wrong.
Binary file modified
BIN
+4.41 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-20-guidance-card-default.png
Oops, something went wrong.
Binary file modified
BIN
+3.16 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-20-setup-tab.png
Oops, something went wrong.
Binary file modified
BIN
+7.21 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-21-guidance-how-to-use.png
Oops, something went wrong.
Binary file modified
BIN
+3.16 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-22-guidance-back-to-buying.png
Oops, something went wrong.
Binary file modified
BIN
+3.97 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-23-guidance-faq.png
Oops, something went wrong.
Binary file modified
BIN
+2.71 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-24-guidance-tab-switch.png
Oops, something went wrong.
Binary file modified
BIN
+3.16 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-25-download-antseed-step.png
Oops, something went wrong.
Binary file modified
BIN
+3.16 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-26-download-antseed-tabs.png
Oops, something went wrong.
Binary file modified
BIN
+2.25 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-27-wallet-controls.png
Oops, something went wrong.
Binary file modified
BIN
+3.16 KB
(100%)
tests/widgets/ai-credits-widget/test-results/acw-28-wallet-controls-hidden.png
Oops, something went wrong.
Binary file modified
BIN
-30.2 KB
(39%)
tests/widgets/citizen-claim-widget/test-results/ccw-01-loading.png
Oops, something went wrong.
Binary file modified
BIN
+3.02 KB
(110%)
tests/widgets/citizen-claim-widget/test-results/ccw-02-not-whitelisted.png
Oops, something went wrong.
Binary file modified
BIN
+1.88 KB
(100%)
tests/widgets/citizen-claim-widget/test-results/ccw-03-error.png
Oops, something went wrong.
Binary file modified
BIN
-31.1 KB
(39%)
tests/widgets/citizen-claim-widget/test-results/ccw-04-retry-clicked.png
Oops, something went wrong.
Binary file modified
BIN
-2.78 KB
(85%)
...dgets/citizen-claim-widget/test-results/ccw-05-custodial-claim-all-contract.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+5.64 KB
(110%)
tests/widgets/gooddata-widget/test-results/gdw-04-live-unavailable.png
Oops, something went wrong.
Binary file modified
BIN
+7.17 KB
(110%)
tests/widgets/gooddata-widget/test-results/gdw-05-empty.png
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.