Search in sources :

Example 6 with HomePage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage 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 7 with HomePage

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

the class Navigating method testExploreWikisLink.

@Test(groups = { "exploreWikisLinkClickOnEnCommunityOpensExplorePage" })
public void testExploreWikisLink() {
    new HomePage().getGlobalNavigation().openWikisMenu().clickExploreWikisLink();
    Assertion.assertEquals(driver.getCurrentUrl(), urlBuilder.getUrlForPage("fandom", "/explore"));
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) Test(org.testng.annotations.Test)

Example 8 with HomePage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage 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 9 with HomePage

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

the class Navigating method testFandomUniversityLink.

@Test(groups = { "fandomUniversityLinkClickOnEnCommunityOpensFandomUniversity" })
public void testFandomUniversityLink() {
    new HomePage().getGlobalNavigation().openWikisMenu().clickFandomUniversityLink();
    Assertion.assertEquals(driver.getCurrentUrl(), urlBuilder.getUrlForPage("community", "/wiki/Fandom_University"));
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) Test(org.testng.annotations.Test)

Example 10 with HomePage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage 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

HomePage (com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage)13 Test (org.testng.annotations.Test)13 Execute (com.wikia.webdriver.common.core.annotations.Execute)8 GlobalNavigation (com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation)6 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)4 NetworkTrafficDump (com.wikia.webdriver.common.core.annotations.NetworkTrafficDump)2 SearchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject)2