@@ -184,7 +184,6 @@ test.describe('GameBoy E2E', () => {
184184 await page . keyboard . press ( 'p' ) ;
185185 await expect ( consoleBody ) . toHaveClass ( / c o n s o l e - b o o t i n g / ) ;
186186 await expect ( bootScreen ) . toHaveClass ( / a c t i v e / ) ;
187- await expect ( bootStatus ) . toBeVisible ( ) ;
188187 await expect ( bootStatus ) . toContainText ( 'CONTROLS LOCKED' ) ;
189188
190189 await page . keyboard . press ( 'ArrowDown' ) ;
@@ -206,6 +205,7 @@ test.describe('GameBoy E2E', () => {
206205
207206 test ( 'Rapid power cycling does not unlock controls early' , async ( { page } ) => {
208207 const consoleBody = page . locator ( '.console' ) ;
208+ const bootScreen = page . locator ( '#boot-screen' ) ;
209209 const firstLink = page . locator ( '.social-link' ) . first ( ) ;
210210 const secondLink = page . locator ( '.social-link' ) . nth ( 1 ) ;
211211
@@ -221,13 +221,18 @@ test.describe('GameBoy E2E', () => {
221221
222222 await page . keyboard . press ( 'p' ) ;
223223 await expect ( consoleBody ) . toHaveClass ( / c o n s o l e - b o o t i n g / ) ;
224+ await expect ( bootScreen ) . toHaveClass ( / a c t i v e / ) ;
225+
226+ await page . waitForTimeout ( 2200 ) ;
227+ await expect ( consoleBody ) . toHaveClass ( / c o n s o l e - b o o t i n g / ) ;
228+ await expect ( bootScreen ) . toHaveClass ( / a c t i v e / ) ;
224229
225- await page . waitForTimeout ( 2600 ) ;
226230 await page . keyboard . press ( 'ArrowDown' ) ;
227231 await expect ( firstLink ) . toHaveClass ( / a c t i v e / ) ;
228232 await expect ( secondLink ) . not . toHaveClass ( / a c t i v e / ) ;
229233
230- await expect ( consoleBody ) . not . toHaveClass ( / c o n s o l e - b o o t i n g / , { timeout : 2000 } ) ;
234+ await expect ( consoleBody ) . not . toHaveClass ( / c o n s o l e - b o o t i n g / , { timeout : 2500 } ) ;
235+ await expect ( bootScreen ) . not . toHaveClass ( / a c t i v e / , { timeout : 2500 } ) ;
231236 await page . keyboard . press ( 'ArrowDown' ) ;
232237 await expect ( secondLink ) . toHaveClass ( / a c t i v e / ) ;
233238 } ) ;
0 commit comments