File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
core/src/components/datetime/test/color Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,15 @@ test.describe('datetime: color', () => {
5
5
test ( 'should not have visual regressions' , async ( { page } ) => {
6
6
await page . goto ( '/src/components/datetime/test/color' ) ;
7
7
8
- await page . waitForSelector ( '.datetime-ready' ) ;
9
-
10
8
const colorSelect = page . locator ( 'ion-select' ) ;
11
9
const darkModeToggle = page . locator ( 'ion-checkbox' ) ;
12
10
const datetime = page . locator ( 'ion-datetime' ) ;
13
11
12
+ await Promise . all ( [
13
+ expect ( page . locator ( '#first .calendar-body' ) ) . toBeVisible ( { timeout : 30000 } ) ,
14
+ expect ( page . locator ( '#second .calendar-body' ) ) . toBeVisible ( { timeout : 30000 } ) ,
15
+ ] ) ;
16
+
14
17
await darkModeToggle . evaluate ( ( el : HTMLIonCheckboxElement ) => ( el . checked = true ) ) ;
15
18
await page . waitForChanges ( ) ;
16
19
You can’t perform that action at this time.
0 commit comments