use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_003_uncategorizedFiles.
@Test(groups = "LightboxTest_003")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_003_uncategorizedFiles() {
LightboxComponentObject lightbox = new SpecialUncategorizedFilesPage().open().getGalleryGrid().openLightboxForGridImage(0);
lightbox.verifyLightboxPopup();
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_002_unusedVideos.
@Test(groups = "LightboxTest_002")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_002_unusedVideos() {
LightboxComponentObject lightbox = new SpecialUnusedVideosPage().open().getGalleryGrid().openLightboxForGridVideo(0);
lightbox.verifyLightboxPopup();
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsPrebid method adsPrebidMercury.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "prebidCustomAdapter", groups = "AdsPrebidMercury")
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void adsPrebidMercury(String wiki, String article) {
String url = urlBuilder.getUrlForPath(wiki, article);
url = urlBuilder.appendQueryStringToURL(url, "wikia_adapter=831");
AdsPrebidObject prebidAds = new AdsPrebidObject(driver, url);
prebidAds.verifyKeyValues(AdsContent.MOBILE_TOP_LB, "wikia", "320x50", "8.30");
prebidAds.verifyPrebidCreative(AdsContent.MOBILE_TOP_LB, true);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsTrackingPixels method adsTrackingPixelSentAuthPage.
@NetworkTrafficDump(useMITM = true)
@Test(groups = "AdsTrackingPixelsAuthPage", dataProviderClass = AdsDataProvider.class, dataProvider = "adsTrackingPixelsSentAuthPage")
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@DontRun(env = { "preview", "sandbox" })
public void adsTrackingPixelSentAuthPage(String wiki, String page, String[] pixelUrls) {
networkTrafficInterceptor.startIntercepting();
String testedPage = urlBuilder.getUrlForWiki(wiki) + page;
AdsBaseObject adsBaseObject = new AdsBaseObject(driver, testedPage);
assertTrackingPixelsSent(adsBaseObject, pixelUrls);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsImageClickedOpensNewPageFandomMobile.
@NetworkTrafficDump(useMITM = true)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPageMobile", groups = { "AdsVuapFandomMobile", "AdsImageClickedOpensNewPageFandomMobile" })
public void adsImageClickedOpensNewPageFandomMobile(String pageType, String pageName, String slotName, String iframeId, String videoUrl) {
networkTrafficInterceptor.startIntercepting();
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
fandomPage.wait.forSuccessfulResponse(networkTrafficInterceptor, videoUrl);
videoFandomPage(slotName).verifyFandomPageOpened(videoFanTakeover);
}
Aggregations