Skip to content

fix visual tests - #115

Merged
emilburzo merged 1 commit into
mainfrom
fix-visual-tests
Aug 6, 2026
Merged

fix visual tests#115
emilburzo merged 1 commit into
mainfrom
fix-visual-tests

Conversation

@emilburzo

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 6, 2026 04:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The changes are small, self-contained, and directly improve determinism of visual snapshots without altering production behavior.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR stabilizes Playwright visual regression tests by making time-dependent UI rendering deterministic, so snapshots don’t drift as real time advances.

Changes:

  • Documented the coupling between e2e/seed.sql flight dates and the visual test “fake now” value.
  • Added a shared FIXED_NOW and pinned the browser clock in the Playwright fixture for all visual tests.
  • Disabled Leaflet tile fade-in in tests to avoid blank map screenshots when the clock is fixed.
File summaries
File Description
e2e/seed.sql Adds guidance to keep seeded flight dates aligned with the visual tests’ pinned browser clock.
e2e/fixtures.ts Pins browser time via FIXED_NOW and forces Leaflet tiles opaque to keep map snapshots reliable.
Review details
  • Files reviewed: 2/10 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@emilburzo
emilburzo merged commit ee9e48f into main Aug 6, 2026
10 checks passed
@emilburzo
emilburzo deleted the fix-visual-tests branch August 6, 2026 04:18
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