Skip to content

Commit 95cc705

Browse files
committed
fix(web): cover bare session refreshes in midnight E2E
The fixture-preserving route only matched sessions requests with a query string. A later bare /api/sessions refresh could therefore replace the injected date-label sessions and make the release E2E fail nondeterministically. Match both endpoint forms, consistent with the initial-response predicate.
1 parent 4909e9f commit 95cc705

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/web/ui/e2e/specs/sessions.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ test.describe("Session management", () => {
9292
// This test injects sessions straight into the client store to control
9393
// their timestamps. Once the initial server page has materialized main,
9494
// keep later refreshes from replacing those fixtures wholesale.
95-
await page.route("**/api/sessions?**", (route) =>
95+
await page.route(/\/api\/sessions(?:\?|$)/, (route) =>
9696
route.fulfill({
9797
status: 200,
9898
contentType: "application/json",

0 commit comments

Comments
 (0)