Skip to content

fix(ui): remove flaky toBeDisabled assertions in E2E tests#54

Merged
fclairamb merged 2 commits intomainfrom
fix/e2e-stability
Jan 24, 2026
Merged

fix(ui): remove flaky toBeDisabled assertions in E2E tests#54
fclairamb merged 2 commits intomainfrom
fix/e2e-stability

Conversation

@fclairamb
Copy link
Copy Markdown
Owner

Summary

  • Remove race-condition-prone toBeDisabled() assertions that check refresh button state immediately after clicking
  • Delete the redundant "should not allow refresh button clicks while refreshing" test
  • Fix flaky CI failures caused by API calls completing faster than Playwright can assert transient states

Test plan

  • Run bun run test:e2e:chromium --grep "Adaptive Auto-Refresh" - all 10 tests pass
  • Run full bun run test:e2e:chromium - all 53 tests pass

🤖 Generated with Claude Code

Remove race-condition-prone assertions that check if the refresh button
is disabled immediately after clicking. These assertions fail in CI
because the API call completes faster than Playwright can check the
transient disabled state.

- Remove the flaky "should not allow refresh button clicks while
  refreshing" test entirely (redundant with other tests)
- Remove 6 other toBeDisabled assertions after click() calls

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@fclairamb fclairamb changed the title fix(test): remove flaky toBeDisabled assertions in E2E tests fix(ui): remove flaky toBeDisabled assertions in E2E tests Jan 24, 2026
@fclairamb fclairamb enabled auto-merge (squash) January 24, 2026 09:27
@fclairamb fclairamb merged commit 2dc8e1a into main Jan 24, 2026
5 checks passed
@fclairamb fclairamb deleted the fix/e2e-stability branch January 24, 2026 09:32
@fclairamb fclairamb mentioned this pull request Jan 24, 2026
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.

1 participant