Search in sources :

Example 6 with GlobalNavigation

use of com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation 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());
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) GlobalNavigation(com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 7 with GlobalNavigation

use of com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation 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());
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) GlobalNavigation(com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation) Test(org.testng.annotations.Test)

Example 8 with GlobalNavigation

use of com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation in project selenium-tests by Wikia.

the class UserAvatar method userCanEnterHisProfileFromUserMenu.

@Test(groups = "UserAvatar_userCanEnterHisProfileFromUserMenu")
@Execute(asUser = User.STAFF)
public void userCanEnterHisProfileFromUserMenu() {
    new SpecialVersionPage().open();
    GlobalNavigation userAvatar = new GlobalNavigation();
    userAvatar.clickUserAvatar().clickViewProfile();
    UserProfilePageObject profile = new UserProfilePageObject(driver);
    profile.verifyProfilePage(credentials.userNameStaff);
}
Also used : SpecialVersionPage(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVersionPage) UserProfilePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.UserProfilePageObject) GlobalNavigation(com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

GlobalNavigation (com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation)8 Test (org.testng.annotations.Test)8 Execute (com.wikia.webdriver.common.core.annotations.Execute)7 HomePage (com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage)6 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)3 SpecialVersionPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVersionPage)2 UserProfilePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.UserProfilePageObject)1