use of com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject 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.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject 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.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject 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();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject 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.pageobjectsfactory.componentobject.lightbox.LightboxComponentObject 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();
}
Aggregations