Skip to content

Commit d1bd57c

Browse files
committed
test(ui): stabilize activity grouping across timezones
1 parent 2543d26 commit d1bd57c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎ui/src/e2e/activity-session-feed.capture.e2e.test.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ suite.define(() => {
2525
viewport: { height: 900, width: 1280 },
2626
},
2727
async ({ page }) => {
28-
const now = Date.now();
28+
const current = new Date();
29+
// Keep the automation fixtures on one local calendar day in every timezone.
30+
const now = new Date(
31+
current.getFullYear(),
32+
current.getMonth(),
33+
current.getDate() - 1,
34+
12,
35+
).getTime();
2936
const releaseKey = "agent:main:release-readiness";
3037
const designKey = "agent:main:design-review";
3138
await installMockGateway(page, {

0 commit comments

Comments
 (0)