Search in sources :

Example 1 with GlobalNavigation

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());
}
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 2 with GlobalNavigation

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());
}
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) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 3 with GlobalNavigation

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

Example 4 with GlobalNavigation

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());
}
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) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 5 with GlobalNavigation

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());
}
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) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

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