use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.
the class Layout method testLayoutForDeLoggedIn.
@Test(groups = { "globalNavigationBarLayoutForDeLoggedIn" })
@Execute(onWikia = "de.gta", asUser = User.USER_GERMAN)
public void testLayoutForDeLoggedIn() {
GlobalNavigation globalNavigation = new HomePage().getGlobalNavigation();
Assert.assertTrue(globalNavigation.isFandomLogoVisible());
Assert.assertTrue(globalNavigation.isCommunityCentralLinkVisible());
Assert.assertTrue(globalNavigation.isSearchInputVisible());
Assert.assertTrue(globalNavigation.isUserAvatarVisible());
Assert.assertTrue(globalNavigation.isNotificationsIconVisible());
Assert.assertTrue(globalNavigation.isStartWikiButtonVisible());
Assert.assertFalse(globalNavigation.isGamesHubVisible());
Assert.assertFalse(globalNavigation.isMoviesHubVisible());
Assert.assertFalse(globalNavigation.isTVHubVisible());
Assert.assertFalse(globalNavigation.isWikisMenuVisible());
Assert.assertFalse(globalNavigation.isAccountMenuVisible());
Assert.assertFalse(globalNavigation.isPartnerSlotLinkVisible());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.
the class Layout method testLayoutForEnglishAnon.
@Test(groups = { "globalNavigationBarLayoutForEnglishAnon" })
public void testLayoutForEnglishAnon() {
GlobalNavigation globalNavigation = new HomePage().getGlobalNavigation();
Assert.assertTrue(globalNavigation.isFandomLogoVisible());
Assert.assertTrue(globalNavigation.isGamesHubVisible());
Assert.assertTrue(globalNavigation.isMoviesHubVisible());
Assert.assertTrue(globalNavigation.isTVHubVisible());
Assert.assertTrue(globalNavigation.isWikisMenuVisible());
Assert.assertTrue(globalNavigation.isSearchInputVisible());
Assert.assertTrue(globalNavigation.isAccountMenuVisible());
Assert.assertTrue(globalNavigation.isStartWikiButtonVisible());
Assert.assertFalse(globalNavigation.isCommunityCentralLinkVisible());
Assert.assertFalse(globalNavigation.isUserAvatarVisible());
Assert.assertFalse(globalNavigation.isNotificationsIconVisible());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.
the class Navigating method testCommunityCentralLink.
@Test(groups = { "communityCentralLinkClickOnEnCommunityOpensEnCommunityCentral" })
public void testCommunityCentralLink() {
new HomePage().getGlobalNavigation().openWikisMenu().clickCommunityCentralLink();
Assertion.assertEquals(driver.getCurrentUrl(), urlBuilder.getUrlForPage("community", "/wiki/Community_Central"));
}
Aggregations