File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ describe('e2e tests', () => {
168
168
await expect ( elementById ( 'overriddenTzName' ) ) . toHaveText ( 'Europe/Prague' ) ;
169
169
170
170
let timeZone = 'America/Vancouver' ;
171
+ await elementById ( 'DateTimePickerScrollView' ) . scrollTo ( 'bottom' ) ;
171
172
await waitFor ( elementById ( 'timezone' ) ) . toBeVisible ( ) . withTimeout ( 1000 ) ;
172
173
await userSwipesTimezoneListUntilDesiredIsVisible ( timeZone ) ;
173
174
@@ -192,6 +193,7 @@ describe('e2e tests', () => {
192
193
193
194
it ( 'daylight saving should work properly' , async ( ) => {
194
195
let timeZone = 'America/Vancouver' ;
196
+ await elementById ( 'DateTimePickerScrollView' ) . scrollTo ( 'bottom' ) ;
195
197
await waitFor ( elementById ( 'timezone' ) ) . toBeVisible ( ) . withTimeout ( 1000 ) ;
196
198
await userSwipesTimezoneListUntilDesiredIsVisible ( timeZone ) ;
197
199
@@ -373,6 +375,7 @@ describe('e2e tests', () => {
373
375
} ) ;
374
376
375
377
it ( ':android: when component unmounts, dialog is dismissed' , async ( ) => {
378
+ await elementById ( 'DateTimePickerScrollView' ) . scrollTo ( 'bottom' ) ;
376
379
await elementById ( 'showAndDismissPickerButton' ) . tap ( ) ;
377
380
await waitFor ( getDatePickerAndroid ( ) ) . toExist ( ) . withTimeout ( 4000 ) ;
378
381
await wait ( 6000 ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ async function userOpensPicker({
35
35
await elementById ( 'DateTimePickerScrollView' ) . scrollTo ( 'top' ) ;
36
36
37
37
await element ( by . text ( mode ) ) . tap ( ) ;
38
- await element ( by . text ( display ) ) . tap ( ) ;
38
+ await element ( by . text ( display ) ) . atIndex ( 0 ) . tap ( ) ;
39
39
if ( interval ) {
40
40
await element ( by . text ( String ( interval ) ) ) . tap ( ) ;
41
41
}
@@ -47,6 +47,7 @@ async function userOpensPicker({
47
47
if ( firstDayOfWeek ) {
48
48
await element ( by . id ( firstDayOfWeek ) ) . tap ( ) ;
49
49
}
50
+ await elementById ( 'DateTimePickerScrollView' ) . scrollTo ( 'bottom' ) ;
50
51
await element ( by . id ( 'showPickerButton' ) ) . tap ( ) ;
51
52
}
52
53
You can’t perform that action at this time.
0 commit comments