use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsVuapTheNewGeneration method vuapDefaultStateAutoplayIsMutredAfrerReplayIsNotMuted.
@Test(groups = { "AdsVuapDefaultStateTng", "AdsVuapDefaultStateMuteOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapTngDesktop")
public void vuapDefaultStateAutoplayIsMutredAfrerReplayIsNotMuted(Page page, String slot, String videoIframeSelector) {
AdsBaseObject ads = openPageWithVideoInLocalStorage(page);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
scrollToSlot(slot, ads);
VuapAssertions.verifyVideoUnmuteAndMute(vuap);
VuapAssertions.verifyReplyButtonDisplayedAfterVideoEnds(vuap, MAX_AUTOPLAY_MOVIE_DURATION);
vuap.replay();
vuap.mute();
VuapAssertions.verifyVideoUnmuteAndMute(vuap);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsVuapTheNewGeneration method vuapResolvedShouldEnd.
@Test(groups = { "AdsVuapResolvedStateTng", "AdsVuapResolvedEndOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapTngDesktop")
public void vuapResolvedShouldEnd(Page page, String slot, String videoIframeSelector) {
AdsBaseObject ads = openPageWithVideoInLocalStorage(page);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
ads.refreshPage();
scrollToSlot(slot, ads);
vuap.replay();
VuapAssertions.verifyReplyButtonDisplayedAfterVideoEnds(vuap, MAX_AUTOPLAY_MOVIE_DURATION);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestDfpParamsPresent method dfpParamsPresentOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "dfpParams", groups = { "DfpParamsPresentOasis", "Ads" })
public void dfpParamsPresentOasis(String wikiName, String article, String adUnit, String slot, List<String> pageParams, List<String> slotParams) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsBaseObject ads = new AdsBaseObject(driver, testedPage);
ads.verifyGptIframe(adUnit, slot, "gpt");
ads.verifyGptParams(slot, pageParams, slotParams);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestDfpParamsPresent method dfpRubiconParamsPresentSyntheticOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "dfpRubiconParamsSynthetic", groups = { "DfpParamsPresentSyntheticOasis", "Ads" })
public void dfpRubiconParamsPresentSyntheticOasis(String wikiName, String article, String queryString, String adUnit, String slot, String patternParam2tierPrice, String patternParam57tierPrice) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
if (StringUtils.isNotEmpty(queryString)) {
testedPage = urlBuilder.appendQueryStringToURL(testedPage, queryString);
}
AdsBaseObject ads = new AdsBaseObject(driver, testedPage);
String currentGptSlotParams = ads.getGptParams(slot, "data-gpt-slot-params");
ads.verifyGptIframe(adUnit, slot, "gpt");
Assertion.assertTrue(ads.areRubiconDfpParamsPresent(currentGptSlotParams, patternParam2tierPrice, patternParam57tierPrice), currentGptSlotParams + " does not contains " + patternParam2tierPrice + " or " + patternParam57tierPrice);
ads.verifyGptAdInSlot(slot, LINE_ITEM_ID, CREATIVE_ID);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestUap method adsUapOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsUapOasis", groups = "AdsUapOasis")
public void adsUapOasis(Page page, List<Map<String, Object>> atfSlots, List<Map<String, Object>> btfSlots) {
AdsBaseObject ads = new AdsBaseObject(driver, urlBuilder.getUrlForPage(page), WindowSize.DESKTOP);
verifySlotsUnblocked(ads, atfSlots);
verifySlotsBlocked(ads, btfSlots);
ads.triggerComments();
verifySlotsUnblocked(ads, ListUtils.union(atfSlots, btfSlots));
}
Aggregations