use of templates.tabnavigation.pages.HomePage in project functional-tests by NativeScript.
the class SmokeTests method test_01_home_page_looks_ok.
@Test(description = "Verify home page looks OK.", groups = { "android", "ios" })
public void test_01_home_page_looks_ok() throws Exception {
HomePage homePage = new HomePage();
this.assertScreen("template-tab-navigation-home", this.settings.shortTimeout, 0.1);
}
use of templates.tabnavigation.pages.HomePage in project functional-tests by NativeScript.
the class SmokeTests method test_02_Tab_SearchPage_looks_ok.
@Test(description = "Verify home page looks OK.", groups = { "android", "ios" })
public void test_02_Tab_SearchPage_looks_ok() throws Exception {
HomePage homePage = new HomePage();
homePage.tabButton("Search");
this.assertScreen("template-tab-navigation-searchPage", this.settings.shortTimeout, 0.1);
}
use of templates.tabnavigation.pages.HomePage in project functional-tests by NativeScript.
the class SmokeTests method test_03_NavigatToHome.
@Test(description = "Verify home page looks OK.", groups = { "android", "ios" })
public void test_03_NavigatToHome() throws Exception {
HomePage homePage = new HomePage();
homePage.tabButton("Home");
this.assertScreen("template-tab-navigation-home", this.settings.shortTimeout, 0.1);
this.find.byText("Item 5").tap();
UIElement detail = this.find.byText("Description for Item 5");
Assert.notNull(detail, "Failed to navigate to details page.");
homePage.navigateBack();
this.assertScreen("template-tab-navigation-home", this.settings.shortTimeout, 0.1);
}
Aggregations