Skip to content

test(site/src/pages/UsersPage): await the last seen trigger label after picking a preset - #31943

Merged
jakehwll merged 1 commit into
mainfrom
fix-users-page-last-seen-test
Nov 10, 2026
Merged

jakehwll merged 1 commit into
mainfrom
fix-users-page-last-seen-test

Conversation

@jeremyruppel

Copy link
Copy Markdown
Collaborator

UsersPage > stores a picked preset in the filter as relative values fails on main since #29809, and blocks test-js on every site/ PR (for example #31942).

The test waits for router.state to hold the new filter, then synchronously queries the trigger for its "Over 30 days" label. The data router updates its state before React commits the re-render, so the query can run while the trigger still shows the "Last seen" placeholder. The fix awaits the label with findByRole. No product change; the label does render.

Verified: the test fails consistently on main locally and in CI, and passes 5 of 5 runs with this change.

🤖 Generated by Coder Agents on behalf of @jeremyruppel.

@jeremyruppel
jeremyruppel temporarily deployed to main November 9, 2026 22:32 — with GitHub Actions Inactive
@jeremyruppel
jeremyruppel temporarily deployed to main November 9, 2026 22:32 — with GitHub Actions Inactive
@jeremyruppel
jeremyruppel marked this pull request as ready for review November 9, 2026 22:34
@jeremyruppel
jeremyruppel temporarily deployed to main November 9, 2026 22:35 — with GitHub Actions Inactive
@jeremyruppel
jeremyruppel requested a review from aqandrew November 9, 2026 22:35
@jakehwll
jakehwll merged commit 8fca118 into main Nov 10, 2026
55 checks passed
@jakehwll
jakehwll deleted the fix-users-page-last-seen-test branch November 10, 2026 04:47
@jakehwll
jakehwll temporarily deployed to main November 10, 2026 04:48 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026

This branch was previously deployed

1 inactive deployment
main — ec9f7316 Deployed Nov 10, 2026 by jakehwll via cla #253014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants