use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsDfpParamsPresentMercury method dfpEvolveParamsPresentMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = MobileAdsDataProvider.class, dataProvider = "dfpEvolveParamsMercury", groups = { "MobileAds", "AdsEvolveMercury" })
public void dfpEvolveParamsPresentMercury(String wikiName, String article, Integer dfpClientId, String adUnit, String slot, List<String> pageParams, List<String> slotParams) {
AdsEvolveObject ads = new AdsEvolveObject(driver);
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
ads.enableEvolve(testedPage);
ads.verifyGptIframe(dfpClientId, adUnit, slot);
ads.verifyGptParams(slot, pageParams, slotParams);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsDfpParamsPresentMercury method dfpParamsPresentMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = MobileAdsDataProvider.class, dataProvider = "dfpParams", groups = { "MobileAds", "AdsDfpParamsPresentMercury" })
public void dfpParamsPresentMercury(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, SRC_MOBILE);
ads.verifyGptParams(slot, pageParams, slotParams);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class DeleteAllPostsByUserTests method clickDeleteAllMobileDisplaysConfirmationDialog.
@Test(groups = "discussions-deleteAllPostsByUserMobile")
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void clickDeleteAllMobileDisplaysConfirmationDialog() {
DeleteDialog confirmationDialog = getDeleteAllButton(userWithPosts.getUserId()).click();
assertTrue(confirmationDialog.isVisible());
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class EditingPostTests method userOnDesktopCanNotSeeThatPostWasEditedByAdministratorOnPostsListPage.
@Test(groups = USER_DESKTOP_TEST_GROUP)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanNotSeeThatPostWasEditedByAdministratorOnPostsListPage() {
final PostEntity.Data data = updatePostAsStaffRemotely(createPostAsUserRemotely());
final PostEntity post = new PostsListPage().open(data.getId()).getPost().findPostById(data.getId());
Assertion.assertFalse(post.hasEditedBySection(), SHOULD_NOT_HAVE_EDITED_BY_SECTION_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class EditingPostTests method userOnDesktopCanNotSeeThatPostWasEditedByAuthorOnPostDetailsPage.
@Test(groups = USER_DESKTOP_TEST_GROUP)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanNotSeeThatPostWasEditedByAuthorOnPostDetailsPage() {
final PostEntity.Data data = updatePostAsStaffRemotely(createPostAsStaffRemotely());
final PostEntity post = new PostDetailsPage().open(data.getId()).getPost().findNewestPost();
Assertion.assertFalse(post.hasEditedBySection(), SAME_PERSON_MESSAGE);
}
Aggregations