Skip to content

Commit 5f9e809

Browse files
wesmclaude
andcommitted
fix: use explicit en-US locale and exact text for session count check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0898572 commit 5f9e809

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

frontend/e2e/virtual-list.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ const DEEP_SESSIONS = 2000;
1414
const MIDDLE_INDEX = Math.floor(DEEP_SESSIONS / 2);
1515
const LAST_INDEX = DEEP_SESSIONS - 1;
1616

17-
/** Regex matching the formatted session count in the list header. */
18-
const DEEP_COUNT_RE = new RegExp(
19-
`${DEEP_SESSIONS.toLocaleString()} sessions`,
20-
);
17+
/** Expected header text after all deep sessions load (en-US). */
18+
const DEEP_COUNT_TEXT = `${DEEP_SESSIONS.toLocaleString("en-US")} sessions`;
2119

2220
const sessions = createMockSessions(
2321
TOTAL_SESSIONS,
@@ -98,7 +96,7 @@ test.describe("Virtual list behavior", () => {
9896
// sessions.length, so scrolling before loading completes
9997
// would land at the wrong position.
10098
await expect(sp.sessionListHeader).toContainText(
101-
DEEP_COUNT_RE,
99+
DEEP_COUNT_TEXT,
102100
{ timeout: 15_000 },
103101
);
104102

@@ -118,7 +116,7 @@ test.describe("Virtual list behavior", () => {
118116
await sp.filterByProject("deep");
119117

120118
await expect(sp.sessionListHeader).toContainText(
121-
DEEP_COUNT_RE,
119+
DEEP_COUNT_TEXT,
122120
{ timeout: 15_000 },
123121
);
124122

0 commit comments

Comments
 (0)