@@ -23,7 +23,7 @@ public async Task LearnScreen_KeepsOrpLetterCenteredOnReferenceGuide()
2323
2424 try
2525 {
26- await page . GotoAsync ( BrowserTestConstants . Routes . LearnQuantum ) ;
26+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnQuantum ) ;
2727 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
2828 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
2929 await Expect ( page . GetByTestId ( UiTestIds . Learn . WordOrp ) ) . ToBeVisibleAsync ( ) ;
@@ -52,7 +52,7 @@ public async Task LearnScreen_UsesPhraseTimelineForSecurityIncidentScript()
5252
5353 try
5454 {
55- await page . GotoAsync ( BrowserTestConstants . Routes . LearnSecurityIncident ) ;
55+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnSecurityIncident ) ;
5656 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
5757 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
5858
@@ -91,7 +91,7 @@ public async Task LearnScreen_DemoContextRails_ShowTwoWordsPerSideWithoutRightRa
9191 await page . SetViewportSizeAsync (
9292 BrowserTestConstants . Learn . DemoViewportWidth ,
9393 BrowserTestConstants . Learn . DemoViewportHeight ) ;
94- await page . GotoAsync ( BrowserTestConstants . Routes . LearnDemo ) ;
94+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnDemo ) ;
9595 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
9696 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
9797 await WaitForLearnLayoutReadyAsync ( page ) ;
@@ -134,7 +134,7 @@ public async Task LearnScreen_KeepsContextRailsSeparatedFromFocusWordOnLeadershi
134134 await page . SetViewportSizeAsync (
135135 BrowserTestConstants . Learn . OverlapViewportWidth ,
136136 BrowserTestConstants . Learn . OverlapViewportHeight ) ;
137- await page . GotoAsync ( BrowserTestConstants . Routes . LearnLeadership ) ;
137+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnLeadership ) ;
138138 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
139139 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
140140 await WaitForLearnLayoutReadyAsync ( page ) ;
@@ -162,7 +162,7 @@ public async Task LearnScreen_KeepsSecurityIncidentContextWordsCloseToFocusedWor
162162 await page . SetViewportSizeAsync (
163163 BrowserTestConstants . Learn . SecurityIncidentViewportWidth ,
164164 BrowserTestConstants . Learn . SecurityIncidentViewportHeight ) ;
165- await page . GotoAsync ( BrowserTestConstants . Routes . LearnSecurityIncident ) ;
165+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnSecurityIncident ) ;
166166 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
167167 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
168168 await WaitForLearnLayoutReadyAsync ( page ) ;
@@ -193,7 +193,7 @@ public async Task LearnScreen_KeepsQuantumContextWordsCloseToFocusedWord()
193193 await page . SetViewportSizeAsync (
194194 BrowserTestConstants . Learn . QuantumViewportWidth ,
195195 BrowserTestConstants . Learn . QuantumViewportHeight ) ;
196- await page . GotoAsync ( BrowserTestConstants . Routes . LearnQuantum ) ;
196+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnQuantum ) ;
197197 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
198198 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
199199 await WaitForLearnLayoutReadyAsync ( page ) ;
@@ -224,7 +224,7 @@ public async Task LearnScreen_LeadershipPreviewState_ShowsCurrentSentenceContext
224224 await page . SetViewportSizeAsync (
225225 BrowserTestConstants . Learn . LeadershipViewportWidth ,
226226 BrowserTestConstants . Learn . LeadershipViewportHeight ) ;
227- await page . GotoAsync ( BrowserTestConstants . Routes . LearnLeadership ) ;
227+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnLeadership ) ;
228228 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
229229 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
230230 await WaitForLearnLayoutReadyAsync ( page ) ;
@@ -258,7 +258,7 @@ public async Task LearnScreen_LeadershipUncertainState_StaysSentenceLocalAndDrop
258258 await page . SetViewportSizeAsync (
259259 BrowserTestConstants . Learn . LeadershipViewportWidth ,
260260 BrowserTestConstants . Learn . LeadershipViewportHeight ) ;
261- await page . GotoAsync ( BrowserTestConstants . Routes . LearnLeadership ) ;
261+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnLeadership ) ;
262262 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
263263 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
264264 await WaitForLearnLayoutReadyAsync ( page ) ;
@@ -300,7 +300,7 @@ public async Task LearnScreen_LongFocusWord_FitsWithoutClipping()
300300
301301 try
302302 {
303- await page . GotoAsync ( BrowserTestConstants . Routes . LearnDemo ) ;
303+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnDemo ) ;
304304 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
305305 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
306306 await WaitForLearnLayoutReadyAsync ( page ) ;
@@ -327,7 +327,7 @@ public async Task LearnScreen_FocusWord_UsesPackedHorizontalStackAroundOrp()
327327
328328 try
329329 {
330- await page . GotoAsync ( BrowserTestConstants . Routes . LearnDemo ) ;
330+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnDemo ) ;
331331 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
332332 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
333333 await WaitForLearnLayoutReadyAsync ( page ) ;
@@ -500,7 +500,7 @@ private async Task<int> MeasureLearnPlaybackDurationAsync(Func<Microsoft.Playwri
500500
501501 try
502502 {
503- await page . GotoAsync ( BrowserTestConstants . Routes . LearnReaderTiming ) ;
503+ await ReaderRouteDriver . OpenLearnAsync ( page , BrowserTestConstants . Routes . LearnReaderTiming ) ;
504504 await Expect ( page . GetByTestId ( UiTestIds . Learn . Page ) )
505505 . ToBeVisibleAsync ( new ( ) { Timeout = BrowserTestConstants . Timing . ExtendedVisibleTimeoutMs } ) ;
506506
0 commit comments