Search in sources :

Example 1 with HomePage

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);
}
Also used : HomePage(templates.tabnavigation.pages.HomePage) Test(org.testng.annotations.Test) MobileTest(functional.tests.core.mobile.basetest.MobileTest)

Example 2 with HomePage

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);
}
Also used : HomePage(templates.tabnavigation.pages.HomePage) Test(org.testng.annotations.Test) MobileTest(functional.tests.core.mobile.basetest.MobileTest)

Example 3 with HomePage

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);
}
Also used : UIElement(functional.tests.core.mobile.element.UIElement) HomePage(templates.tabnavigation.pages.HomePage) Test(org.testng.annotations.Test) MobileTest(functional.tests.core.mobile.basetest.MobileTest)

Aggregations

MobileTest (functional.tests.core.mobile.basetest.MobileTest)3 Test (org.testng.annotations.Test)3 HomePage (templates.tabnavigation.pages.HomePage)3 UIElement (functional.tests.core.mobile.element.UIElement)1