use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnDesktopCanNotReportPostOnUserPostsPage.
@Test(groups = "discussions-anonUserDesktopReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanNotReportPostOnUserPostsPage() {
final UserPostsPage page = openDefaultUserPostPageWaiting();
assertFalse(isReportPostOptionAvailableOn(page), NO_REPORT_POST_OPTION_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class ReportingPostTests method userOnMobileCanNotSeeDeletedPostOnPostsListPage.
@Test(groups = "discussions-loggedInUsersMobileReporting")
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanNotSeeDeletedPostOnPostsListPage() {
final PostEntity.Data data = createAndReportAndDeletePostRemotely();
final PostEntity post = openPostListPageAndWaitUntilLoaded().getPost().findPostById(data.getId());
assertNull(post, NOT_VISIBLE_DELETED_POST_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_007_specialVideo.
@Test(groups = "LightboxTest_007")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_007_specialVideo() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialVideosPageObject specialVideos = base.openSpecialVideoPage(wikiURL);
LightboxComponentObject lightbox = specialVideos.openLightboxForGridVideo(0);
lightbox.verifyLightboxPopup();
lightbox.verifyLightboxVideo();
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_005_verifyExistenceAndURLsOfSocialButtons.
@Test(groups = "LightboxTest_005")
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_005_verifyExistenceAndURLsOfSocialButtons() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
ArticlePageObject article = new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.clearContent();
PhotoAddComponentObject photoAddPhoto = visualEditMode.clickPhotoButton();
PhotoOptionsComponentObject photoOptions = photoAddPhoto.addPhotoFromWiki("image", 1);
photoOptions.setCaption(PageContent.CAPTION);
photoOptions.clickAddPhoto();
visualEditMode.verifyPhoto();
visualEditMode.submitArticle();
article.verifyPhoto();
LightboxComponentObject lightbox = article.clickThumbnailImage();
lightbox.clickPinButton();
// Assure header buttons are visible if not hovered over
lightbox.makeHeaderVisible();
lightbox.clickShareButton();
lightbox.verifyShareButtons();
lightbox.clickFacebookShareButton();
lightbox.verifyUrlInNewWindow(URLsContent.FACEBOOK_DOMAIN);
lightbox.clickTwitterShareButton();
lightbox.verifyUrlInNewWindow(URLsContent.TWITTER_DOMAIN);
lightbox.clickStumbleUponShareButton();
lightbox.verifyUrlInNewWindow(URLsContent.STUMPLEUPON_DOMAIN);
lightbox.clickRedditShareButton();
lightbox.verifyUrlInNewWindow(URLsContent.REDDIT_DOMAIN);
lightbox.clickPlusOneShareButton();
lightbox.verifyUrlInNewWindow(URLsContent.GOOGLE_DOMAIN);
lightbox.clickCloseShareScreenButton();
lightbox.verifyShareScreenClosed();
lightbox.clickCloseButton();
lightbox.verifyLightboxClosed();
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_008_filepage_video.
/**
* Open lightbox from Special:Videos, verify title url, verify More Info button and verify file
* page (logged-in user)
*/
@Test(groups = "LightboxTest_008")
@Execute(asUser = User.USER, disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_008_filepage_video() {
SpecialVideosPageObject specialVideos = new WikiBasePageObject().openSpecialVideoPage(wikiURL);
LightboxComponentObject lightbox = specialVideos.openLightboxForGridVideo(0);
lightbox.verifyLightboxPopup();
lightbox.verifyLightboxVideo();
FilePage filePage = lightbox.clickTitle();
filePage.verifyTabsExistVideo();
filePage.verifyEmbeddedVideoIsPresent();
}
Aggregations