Skip to content

fix(test): resolve CI test flakiness in App.test and E2E budget-overview#196

Merged
steilerDev merged 1 commit into
betafrom
fix/ci-test-flakiness
Feb 22, 2026
Merged

fix(test): resolve CI test flakiness in App.test and E2E budget-overview#196
steilerDev merged 1 commit into
betafrom
fix/ci-test-flakiness

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

  • App.test.tsx: Increased waitFor timeout from default 1000ms to 5000ms for lazy-loading assertions. The React.lazy import + auth check chain takes longer on CI runners than locally, causing intermittent timeouts.
  • budget-overview.spec.ts: Changed page.getByRole('img') to page.getByRole('img', { name: /Budget breakdown/ }) to avoid Playwright strict mode violation — the bare selector matched both the logo SVG and the BudgetBar component.

Fixes CI failures on PR #160.

Test plan

  • Quality Gates CI passes (unit tests green)
  • E2E smoke tests pass
  • Full E2E suite: budget-overview "Budget bar is visible" passes on desktop/tablet/mobile

🤖 Generated with Claude Code

- Increase waitFor timeout in App.test.tsx from default 1000ms to 5000ms
  to accommodate slower CI environments where React.lazy imports and auth
  checks take longer to resolve

- Use specific locator `getByRole('img', { name: /Budget breakdown/ })`
  in budget-overview E2E test instead of bare `getByRole('img')` which
  matched both the logo SVG and BudgetBar, causing Playwright strict
  mode violations

Co-Authored-By: Claude orchestrator (Opus 4.6) <noreply@anthropic.com>
@steilerDev steilerDev merged commit 66ce30c into beta Feb 22, 2026
5 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.9.0-beta.39 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants