Skip to content

fix(web): pause the e2e fake clock ahead of its install time - #977

Merged
behinddwalls merged 1 commit into
mainfrom
e2e-clock-pause-race
Oct 30, 2026
Merged

behinddwalls merged 1 commit into
mainfrom
e2e-clock-pause-race

Conversation

@behinddwalls

@behinddwalls behinddwalls commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Why?

The header auto-refresh e2e tests install Playwright's fake clock at now and then call pauseAt(now). The installed clock keeps running between the two calls, so when even a millisecond passes, pauseAt targets the past and throws Cannot fast-forward to the past. This failed the Stovepipe suite on #969 while the same test passed locally and on rerun.

What?

  • The Stovepipe and SubmitQueue specs pause the clock one minute after the install time, so pauseAt always jumps forward. Auto-refresh is still off at that point and the Live indicator depends only on fetch failures, so the jump changes nothing the tests assert.

Test Plan

✅ bazel test //web/test/e2e/stovepipe:web_test //web/test/e2e/submitqueue:web_test --sandbox_writable_path=$HOME/.docker --local_test_jobs=1

🤖 Generated with Claude Code

## Summary

### Why?

The header auto-refresh e2e tests install Playwright's fake clock at `now` and then call `pauseAt(now)`. The installed clock keeps running between the two calls, so when even a millisecond passes, `pauseAt` targets the past and throws `Cannot fast-forward to the past`. This failed the Stovepipe suite on #969 while the same test passed locally and on rerun.

### What?

- The Stovepipe and SubmitQueue specs pause the clock one minute after the install time, so `pauseAt` always jumps forward. Auto-refresh is still off at that point and the Live indicator depends only on fetch failures, so the jump changes nothing the tests assert.

## Test Plan

✅ `bazel test //web/test/e2e/stovepipe:web_test //web/test/e2e/submitqueue:web_test --sandbox_writable_path=$HOME/.docker --local_test_jobs=1`
@behinddwalls
behinddwalls marked this pull request as ready for review October 28, 2026 21:22
@behinddwalls
behinddwalls requested review from a team and sbalabanov as code owners October 28, 2026 21:22
@behinddwalls
behinddwalls added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit c6eb857 Oct 30, 2026
36 checks passed
@behinddwalls
behinddwalls deleted the e2e-clock-pause-race branch October 30, 2026 15:04
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