use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.
the class TestCorrelatorDFP method correlatorIDInQueryStringShouldBeTheSameMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(groups = "DFPCorrelatorMercury")
@NetworkTrafficDump
@Execute(onWikia = "project43")
public void correlatorIDInQueryStringShouldBeTheSameMercury() {
networkTrafficInterceptor.startIntercepting("DFPCorrelator");
new HomePage().open();
networkTrafficInterceptor.logDFP(correlatorMobile);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.
the class TestCorrelatorDFP method correlatorIDInQueryStringShouldBeTheSameOasis.
@Test(groups = "DFPCorrelatorOasis")
@NetworkTrafficDump
@Execute(onWikia = "project43")
public void correlatorIDInQueryStringShouldBeTheSameOasis() {
networkTrafficInterceptor.startIntercepting("DFPCorrelator");
new HomePage().open();
networkTrafficInterceptor.logDFP(correlatorDesktop);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.
the class Searching method serachGlobalNavigationBarAsLoggedIn.
@Test(groups = { "serachGlobalNavigationBarAsLoggedIn" }, dataProvider = "getDataForGlobalSearch")
@Execute(asUser = User.USER)
public void serachGlobalNavigationBarAsLoggedIn(String wikiName, String query, String expectedSpecialPage) {
HomePage homePage = new HomePage();
homePage.getUrl(urlBuilder.getUrlForWiki(wikiName));
SearchPageObject search = homePage.getGlobalNavigation().search(query);
Assertion.assertStringContains(driver.getCurrentUrl(), expectedSpecialPage);
Assertion.assertTrue(search.isResultPresent());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.
the class Searching method serachGlobalNavigationBarAsAnon.
@Test(groups = { "serachGlobalNavigationBarAsAnon" }, dataProvider = "getDataForGlobalSearch")
public void serachGlobalNavigationBarAsAnon(String wikiName, String query, String expectedSpecialPage) {
HomePage homePage = new HomePage();
homePage.getUrl(urlBuilder.getUrlForWiki(wikiName));
SearchPageObject search = homePage.getGlobalNavigation().search(query);
Assertion.assertStringContains(driver.getCurrentUrl(), expectedSpecialPage);
Assertion.assertTrue(search.isResultPresent());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage 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());
}
Aggregations