@@ -15,15 +15,17 @@ test('Switch themes', async () => {
15
15
windows = windowLoggedIn . windows ;
16
16
const [ windowA ] = windows ;
17
17
// Check light theme colour is correct
18
- const lightThemeColor = windowA . locator ( '.inbox.index' ) ;
19
- await expect ( lightThemeColor ) . toHaveCSS ( 'background-color' , 'rgb(255, 255, 255)' ) ;
18
+ const darkThemeColor = windowA . locator ( '.inbox.index' ) ;
19
+ await expect ( darkThemeColor ) . toHaveCSS ( 'background-color' , 'rgb(27, 27, 27)' ) ;
20
+
20
21
// Click theme button and change to dark theme
21
22
await clickOnTestIdWithText ( windowA , 'theme-section' ) ;
22
23
// Check background colour of background to verify dark theme
23
- const darkThemeColor = windowA . locator ( '.inbox.index' ) ;
24
- await expect ( darkThemeColor ) . toHaveCSS ( 'background-color' , 'rgb(23, 23, 23)' ) ;
24
+ const lightThemeColor = windowA . locator ( '.inbox.index' ) ;
25
+ await expect ( lightThemeColor ) . toHaveCSS ( 'background-color' , 'rgb(255, 255, 255)' ) ;
26
+
25
27
// Toggle back to light theme
26
28
await clickOnTestIdWithText ( windowA , 'theme-section' ) ;
27
29
// Check background colour again
28
- await expect ( lightThemeColor ) . toHaveCSS ( 'background-color' , 'rgb(255, 255, 255 )' ) ;
30
+ await expect ( darkThemeColor ) . toHaveCSS ( 'background-color' , 'rgb(27, 27, 27 )' ) ;
29
31
} ) ;
0 commit comments