Skip to content

Fix time-of-day flake in date range picker e2e test#3269

Merged
david-crespo merged 1 commit into
mainfrom
claude/playwright-failure-main-5hvusg
Jun 30, 2026
Merged

Fix time-of-day flake in date range picker e2e test#3269
david-crespo merged 1 commit into
mainfrom
claude/playwright-failure-main-5hvusg

Conversation

@david-crespo

Copy link
Copy Markdown
Collaborator

The "invalid range shows an error" test in instance-metrics.e2e.ts
collapsed the default "Last hour" range to a single day by clicking
Today twice, then asserted the range was valid. But the calendar keeps
the time components from the existing range, and when the test runs
shortly after midnight the "Last hour" range straddles midnight (start
~23:00 the previous day, end ~00:00 today). Collapsing both dates to
today then leaves the start time after the end time, so the range reads
as invalid and the precondition assertion fails. This is what broke CI
on main, which ran at 00:03 UTC.

Set the start and end times explicitly to a valid same-day order before
asserting the range is valid, then flip them to assert the invalid case,
so the test no longer depends on the time of day it runs.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_017LT16CnNXBGhBHKk82cq9Z

The "invalid range shows an error" test in instance-metrics.e2e.ts
collapsed the default "Last hour" range to a single day by clicking
Today twice, then asserted the range was valid. But the calendar keeps
the time components from the existing range, and when the test runs
shortly after midnight the "Last hour" range straddles midnight (start
~23:00 the previous day, end ~00:00 today). Collapsing both dates to
today then leaves the start time after the end time, so the range reads
as invalid and the precondition assertion fails. This is what broke CI
on main, which ran at 00:03 UTC.

Set the start and end times explicitly to a valid same-day order before
asserting the range is valid, then flip them to assert the invalid case,
so the test no longer depends on the time of day it runs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017LT16CnNXBGhBHKk82cq9Z
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Jun 30, 2026 1:01am

Request Review

@david-crespo david-crespo merged commit 07daaf1 into main Jun 30, 2026
7 checks passed
@david-crespo david-crespo deleted the claude/playwright-failure-main-5hvusg branch June 30, 2026 01:11
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