Skip to content

Commit 9b7a261

Browse files
vchimevvchimev
vchimev
authored and
vchimev
committed
Add ActionBar Title Verification
Add verification to NativeScript/nativescript-angular#897.
1 parent d3df0ff commit 9b7a261

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: src/test/java/testsappng/Screens/ActionBarFirstPage.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import functional.tests.core.enums.PlatformType;
77
import functional.tests.core.mobile.helpers.NavigationManager;
88
import org.openqa.selenium.By;
9+
import org.testng.Assert;
910

1011
public class ActionBarFirstPage extends BasePageExtended {
1112
public static final String actionBarOne = "ActionBar1";
@@ -15,6 +16,7 @@ public ActionBarFirstPage(MobileContext context) {
1516
UIElement btnElement = this.wait.waitForVisible(this.locators.byText(actionBarOne, false, false), 4, true);
1617
this.navigateTo(btnElement, actionBarOne);
1718
this.navigationManager.setMainPage(actionBarOne);
19+
this.loadedActionBarFirstPage();
1820
}
1921

2022
public ActionBarFirstPage(MobileContext context, NavigationManager navigationManager) {
@@ -82,13 +84,11 @@ public UIElement labelDelete() {
8284
return this.find.byTextContains("delete tap");
8385
}
8486

85-
public Boolean loadedActionBarFirstPage() {
87+
public void loadedActionBarFirstPage() {
8688
if (this.title() != null) {
87-
this.log.info("ActionBar First homePageLoaded.");
88-
return true;
89+
this.log.info("ActionBar First Page Loaded.");
8990
} else {
90-
this.log.error("ActionBar First NOT homePageLoaded.");
91-
return false;
91+
Assert.fail("ActionBar First Page NOT Loaded.");
9292
}
9393
}
9494

0 commit comments

Comments
 (0)