@@ -2,6 +2,7 @@ import { AppiumDriver, SearchOptions } from "nativescript-dev-appium";
22import { assert } from "chai" ;
33
44const home = "Home Component" ;
5+ const about = "About Component" ;
56const login = "Login Component" ;
67const tabs = "Tabs Component" ;
78
@@ -16,6 +17,7 @@ const gotoNextTeam = "next team";
1617const gotoTeams = "teams" ;
1718
1819const gotoHomePage = "Go To Home Page" ;
20+ const gotoAboutPage = "Go To About Page" ;
1921const gotoTabsPage = "Go To Tabs Page" ;
2022const confirmDialog = "Ok" ;
2123
@@ -65,6 +67,12 @@ export class Screen {
6567 console . log ( home + " loaded!" ) ;
6668 }
6769
70+ loadedAbout = async ( ) => {
71+ const lblAbout = await this . _driver . findElementByAutomationText ( about ) ;
72+ assert . isTrue ( await lblAbout . isDisplayed ( ) ) ;
73+ console . log ( home + " loaded!" ) ;
74+ }
75+
6876 loadedTabs = async ( ) => {
6977 const lblTabs = await this . _driver . findElementByAutomationText ( tabs ) ;
7078 assert . isTrue ( await lblTabs . isDisplayed ( ) ) ;
@@ -113,6 +121,11 @@ export class Screen {
113121 await btnNavToHomePage . tap ( ) ;
114122 }
115123
124+ navigateToAboutPage = async ( ) => {
125+ const btnNavToAboutPage = await this . _driver . findElementByAutomationText ( gotoAboutPage ) ;
126+ await btnNavToAboutPage . tap ( ) ;
127+ }
128+
116129 navigateToPlayer = async ( player : string ) => {
117130 const btnNavPlayerPage = await this . _driver . findElementByAutomationText ( player ) ;
118131 await btnNavPlayerPage . tap ( ) ;
0 commit comments