@@ -51,10 +51,10 @@ describe('e2e tests', () => {
5151 }
5252 } ) ;
5353
54- it ( 'nothing should happen if date does not change' , async ( ) => {
55- if ( isIOS ( ) ) {
56- await userOpensPicker ( { mode : 'date' , display : 'compact' } ) ;
54+ it ( 'nothing should happen if picker is dismissed / cancelled' , async ( ) => {
55+ await userOpensPicker ( { mode : 'date' , display : 'default' } ) ;
5756
57+ if ( isIOS ( ) ) {
5858 await element (
5959 by . traits ( [ 'staticText' ] ) . withAncestor ( by . label ( 'Date Picker' ) ) ,
6060 ) . tap ( ) ;
@@ -65,7 +65,6 @@ describe('e2e tests', () => {
6565 await nextMonthArrow . tap ( ) ;
6666 await userDismissesCompactDatePicker ( ) ;
6767 } else {
68- await userOpensPicker ( { mode : 'date' , display : 'default' } ) ;
6968 const calendarHorizontalScrollView = element (
7069 by
7170 . type ( 'android.widget.ScrollView' )
@@ -76,6 +75,7 @@ describe('e2e tests', () => {
7675 await userTapsCancelButtonAndroid ( ) ;
7776 }
7877
78+ await elementByText ( 'great' ) . tap ( ) ;
7979 await expect ( getDateText ( ) ) . toHaveText ( '11/13/2021' ) ;
8080 } ) ;
8181
@@ -123,6 +123,7 @@ describe('e2e tests', () => {
123123 } else {
124124 await userChangesTimeValue ( { minutes : '22' } ) ;
125125 await userTapsCancelButtonAndroid ( ) ;
126+ await elementByText ( 'great' ) . tap ( ) ;
126127 }
127128 await expect ( getTimeText ( ) ) . toHaveText ( '11:00' ) ;
128129 } ) ;
0 commit comments