File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ describe.e2e(':ios: orientation', () => {
1212 await elementById ( TestIDs . SHOW_ORIENTATION_SCREEN ) . tap ( ) ;
1313 } ) ;
1414
15+ afterEach ( ( ) => {
16+ device . setOrientation ( 'portrait' ) ;
17+ } ) ;
18+
1519 it ( 'landscape and portrait array' , async ( ) => {
1620 await elementById ( TestIDs . LANDSCAPE_PORTRAIT_ORIENTATION_BTN ) . tap ( ) ;
1721 await expect ( element ( by . id ( TestIDs . PORTRAIT_ELEMENT ) ) ) . toBeVisible ( ) ;
@@ -40,6 +44,8 @@ describe.e2e(':ios: orientation', () => {
4044 await expect ( element ( by . id ( TestIDs . LANDSCAPE_ELEMENT ) ) ) . toBeVisible ( ) ;
4145 await device . setOrientation ( 'portrait' ) ;
4246 await expect ( element ( by . id ( TestIDs . LANDSCAPE_ELEMENT ) ) ) . toBeVisible ( ) ;
47+ await device . setOrientation ( 'landscape' ) ;
48+ await expect ( element ( by . id ( TestIDs . LANDSCAPE_ELEMENT ) ) ) . toBeVisible ( ) ;
4349 await elementById ( TestIDs . DISMISS_BTN ) . tap ( ) ;
4450 } ) ;
4551} ) ;
You can’t perform that action at this time.
0 commit comments