Repository navigation
Conversation
|
@L03TJ3 playwright tests are failing, please handle this or open a bounty |
|
@copilot create a report why playwright tests are failing and what is required in order to fix them |
I checked PR #221’s failing Root causes:
What is required to fix:
The failing workflow file itself is not the primary issue; the failures are in existing Playwright specs already present in the repo. |
|
Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
Addressed in
|
There was a problem hiding this comment.
Pull request overview
This PR improves Playwright-based CI coverage by adding a dedicated GitHub Actions workflow to run the Storybook/demo Playwright suite on PRs, and adjusts a couple of widget Playwright expectations to match updated numeric formatting and loading timings.
Changes:
- Added a new GitHub Actions workflow to run
pnpm test:demoon pushes/PRs tomain. - Updated GoodReserveWidget Playwright assertions to expect the new formatted numeric outputs.
- Increased the visibility assertion timeout for an AiCreditsWidget AppKit connect-wallet test to reduce flakiness.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
tests/widgets/goodreserve-widget/states.spec.ts |
Updates expected formatted amounts/balances in widget state smoke tests. |
tests/widgets/ai-credits-widget/states.spec.ts |
Adds a longer timeout for the AppKit connect-wallet root visibility check. |
.github/workflows/playwright-demo-tests.yml |
Introduces a CI workflow to run Playwright demo tests on PRs/pushes. |
Suppressed comments (3)
tests/widgets/goodreserve-widget/states.spec.ts:116
- This assertion uses substring text matching, so it won’t catch regressions where the formatted amount is rendered with extra decimals (e.g.
108.2500). Prefer an exact match to validate the formatting produced byformatTokenAmount.
await expect(page.getByText('108.25')).toBeVisible()
tests/widgets/goodreserve-widget/states.spec.ts:136
getByText('216.50')is a substring match by default; it would also match216.5000, reducing the test’s ability to enforce the intended 2-decimal formatting. Use an exact match here.
await expect(page.getByText('216.50')).toBeVisible()
tests/widgets/goodreserve-widget/states.spec.ts:176
- This assertion is currently a substring match. If the UI accidentally renders additional decimals (e.g.
10,230.4600 G$), the test would still pass. Use exact matching to make the formatting check strict.
await expect(page.getByText('10,230.46 G$')).toBeVisible()
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
|
Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Addressed in
|
|
@copilot
Verify that #221 runs the full suite and reports the result for the tested commit. |
Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Addressed in
|
|
@copilot Please fix the six non-CitizenClaim failures from run https://github.com/GoodDollar/GoodWidget/actions/runs/37321167725 on this PR branch:
Keep changes minimal. Leave CitizenClaim code and tests completely untouched and report its existing failure separately. Run the affected tests and then the full pnpm test:demo suite; report results and the tested commit. Do not skip tests or weaken assertions to get a green result. No unrelated workflow changes or merging. |
Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Addressed in The six requested non-CitizenClaim regressions are fixed, and the focused rerun passed:
I also ran |
Description
Added playwright tests to the action flow