@@ -12,7 +12,9 @@ const modalFrame = "Show Modal Page With Frame";
1212const modalPage = "Show Modal Page" ;
1313const modalTabView = "Show Modal TabView" ;
1414const navToSecondPage = "Navigate To Second Page" ;
15- const rootView = "Change Root View" ;
15+ const resetFrameRootView = "Reset Frame Root View" ;
16+ const resetTabRootView = "Reset Tab Root View" ;
17+ const resetLayoutRootView = "Reset Layout Root View" ;
1618
1719const showNestedModalFrame = "Show Nested Modal Page With Frame" ;
1820const showNestedModalPage = "Show Nested Modal Page" ;
@@ -35,9 +37,19 @@ export class Screen {
3537 console . log ( home + " loaded!" ) ;
3638 }
3739
38- changeRootView = async ( ) => {
39- const btnChangeRootView = await this . _driver . findElementByText ( rootView ) ;
40- await btnChangeRootView . tap ( ) ;
40+ resetFrameRootView = async ( ) => {
41+ const btnResetFrameRootView = await this . _driver . findElementByText ( resetFrameRootView ) ;
42+ await btnResetFrameRootView . tap ( ) ;
43+ }
44+
45+ resetTabRootView = async ( ) => {
46+ const btnResetTabRootView = await this . _driver . findElementByText ( resetTabRootView ) ;
47+ await btnResetTabRootView . tap ( ) ;
48+ }
49+
50+ resetLayoutRootView = async ( ) => {
51+ const btnResetLayoutRootView = await this . _driver . findElementByText ( resetLayoutRootView ) ;
52+ await btnResetLayoutRootView . tap ( ) ;
4153 }
4254
4355 loadedTabRootView = async ( ) => {
@@ -52,7 +64,7 @@ export class Screen {
5264 try {
5365 await this . loadedTabRootView ( ) ;
5466 } catch ( err ) {
55- await this . changeRootView ( ) ;
67+ await this . resetTabRootView ( ) ;
5668 await this . loadedTabRootView ( ) ;
5769 }
5870 }
0 commit comments