File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,8 @@ const DEEP_SESSIONS = 2000;
1414const MIDDLE_INDEX = Math . floor ( DEEP_SESSIONS / 2 ) ;
1515const 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
2220const 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
You can’t perform that action at this time.
0 commit comments