use of com.wikia.webdriver.elements.mercury.components.Navigation in project selenium-tests by Wikia.
the class PolldaddyTests method init.
private void init() {
this.topBar = new TopBar(driver);
this.navigation = new Navigation(driver);
this.navigate = new Navigate();
this.widget = new PolldaddyWidgetPageObject(driver);
}
use of com.wikia.webdriver.elements.mercury.components.Navigation in project selenium-tests by Wikia.
the class NavigationTests method mercury_navigation_navigationOnNonEnglishWiki.
void mercury_navigation_navigationOnNonEnglishWiki(WikiBasePageObject page) {
Navigation navigation = page.getTopBar().openNavigation();
Assertion.assertFalse(navigation.areHubLinksVisible());
}
use of com.wikia.webdriver.elements.mercury.components.Navigation in project selenium-tests by Wikia.
the class NavigationTests method mercury_navigation_resetNavigationState.
void mercury_navigation_resetNavigationState(WikiBasePageObject page) {
TopBar topBar = page.getTopBar();
Navigation navigation = topBar.openNavigation();
Assertion.assertTrue(navigation.isMainHeaderVisible());
navigation.openSubMenu(1);
Assertion.assertTrue(navigation.isBackButtonVisible());
topBar.clickCloseButton();
topBar.openNavigation();
Assertion.assertTrue(navigation.isMainHeaderVisible());
}
use of com.wikia.webdriver.elements.mercury.components.Navigation in project selenium-tests by Wikia.
the class NavigationTests method mercury_navigation_navigationElementsAnonymousUser.
void mercury_navigation_navigationElementsAnonymousUser(WikiBasePageObject page) {
Navigation navigation = page.getTopBar().openNavigation();
Assertion.assertTrue(navigation.isUserAvatarVisible());
Assertion.assertFalse(navigation.isUserProfileLinkVisible());
Assertion.assertFalse(navigation.isNavigationToUserProfileVisible());
Assertion.assertEquals(navigation.getNavigationHeaderText(), "Sign In | Register");
}
use of com.wikia.webdriver.elements.mercury.components.Navigation in project selenium-tests by Wikia.
the class NavigationTests method mercury_navigation_navigationOnEnglishWiki.
void mercury_navigation_navigationOnEnglishWiki(WikiBasePageObject page) {
Navigation navigation = page.getTopBar().openNavigation();
Assertion.assertTrue(navigation.areHubLinksVisible());
}
Aggregations