use of com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation in project selenium-tests by Wikia.
the class Layout method testLayoutForEnglishLoggedIn.
@Test(groups = { "globalNavigationBarLayoutForEnglishLoggedIn" })
@Execute(asUser = User.USER)
public void testLayoutForEnglishLoggedIn() {
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.isUserAvatarVisible());
Assert.assertTrue(globalNavigation.isNotificationsIconVisible());
Assert.assertTrue(globalNavigation.isStartWikiButtonVisible());
Assert.assertFalse(globalNavigation.isCommunityCentralLinkVisible());
Assert.assertFalse(globalNavigation.isAccountMenuVisible());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation in project selenium-tests by Wikia.
the class Layout method testLayoutForDeAnon1284x900.
@Test(groups = { "globalNavigationBarLayoutForDeAnon1284x900" })
@Execute(onWikia = "de.gta")
@InBrowser(browserSize = "1296x900", browser = Browser.FIREFOX)
public void testLayoutForDeAnon1284x900() {
GlobalNavigation globalNavigation = new HomePage().getGlobalNavigation();
Assert.assertTrue(globalNavigation.isFandomLogoVisible());
Assert.assertTrue(globalNavigation.isCommunityCentralLinkVisible());
Assert.assertTrue(globalNavigation.isSearchInputVisible());
Assert.assertTrue(globalNavigation.isAccountMenuVisible());
Assert.assertTrue(globalNavigation.isStartWikiButtonVisible());
Assert.assertTrue(globalNavigation.isPartnerSlotLinkVisible());
Assert.assertFalse(globalNavigation.isGamesHubVisible());
Assert.assertFalse(globalNavigation.isMoviesHubVisible());
Assert.assertFalse(globalNavigation.isTVHubVisible());
Assert.assertFalse(globalNavigation.isWikisMenuVisible());
Assert.assertFalse(globalNavigation.isUserAvatarVisible());
Assert.assertFalse(globalNavigation.isNotificationsIconVisible());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation in project selenium-tests by Wikia.
the class UserAvatar method clickOnAvatarOpensUserMenu.
@Test(groups = "UserAvatar_clickOnAvatarOpensUserMenu")
@Execute(asUser = User.STAFF)
public void clickOnAvatarOpensUserMenu() {
new SpecialVersionPage().open();
GlobalNavigation userAvatar = new GlobalNavigation();
userAvatar.clickUserAvatar();
Assertion.assertTrue(userAvatar.isUserMenuOpened());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation in project selenium-tests by Wikia.
the class Layout method testLayoutForDeAnon.
@Test(groups = { "globalNavigationBarLayoutForDeAnon" })
@Execute(onWikia = "de.gta")
@InBrowser(browserSize = "1295x900", browser = Browser.FIREFOX)
public void testLayoutForDeAnon() {
GlobalNavigation globalNavigation = new HomePage().getGlobalNavigation();
Assert.assertTrue(globalNavigation.isFandomLogoVisible());
Assert.assertTrue(globalNavigation.isCommunityCentralLinkVisible());
Assert.assertTrue(globalNavigation.isSearchInputVisible());
Assert.assertTrue(globalNavigation.isAccountMenuVisible());
Assert.assertTrue(globalNavigation.isStartWikiButtonVisible());
Assert.assertFalse(globalNavigation.isGamesHubVisible());
Assert.assertFalse(globalNavigation.isMoviesHubVisible());
Assert.assertFalse(globalNavigation.isTVHubVisible());
Assert.assertFalse(globalNavigation.isWikisMenuVisible());
Assert.assertFalse(globalNavigation.isUserAvatarVisible());
Assert.assertFalse(globalNavigation.isNotificationsIconVisible());
Assert.assertFalse(globalNavigation.isPartnerSlotLinkVisible());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation in project selenium-tests by Wikia.
the class Layout method testLayoutForDeLoggedIn1284x900.
@Test(groups = { "globalNavigationBarLayoutForDeLoggedIn1284x900" })
@Execute(onWikia = "de.gta", asUser = User.USER_GERMAN)
@InBrowser(browserSize = "1296x900", browser = Browser.FIREFOX)
public void testLayoutForDeLoggedIn1284x900() {
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.assertTrue(globalNavigation.isPartnerSlotLinkVisible());
Assert.assertFalse(globalNavigation.isGamesHubVisible());
Assert.assertFalse(globalNavigation.isMoviesHubVisible());
Assert.assertFalse(globalNavigation.isTVHubVisible());
Assert.assertFalse(globalNavigation.isWikisMenuVisible());
Assert.assertFalse(globalNavigation.isAccountMenuVisible());
}
Aggregations