use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_007_verifyTOCtakesLoggedInUserToSectionClicked.
/**
* 1. as logged in user open an article with TOC 2. user clicks on the first link in TOC 3. user
* view is sent to the chosen section
*/
@// QAART-262
Test(// QAART-262
enabled = false, groups = { "ArticleTOCTests", "ArticleTOCTests_007" })
@Execute(asUser = User.USER_12)
public void ArticleTOCTests_007_verifyTOCtakesLoggedInUserToSectionClicked() {
new ArticleContent().push(PageContent.ARTICLE_WITH_TOC_LINES);
ArticlePageObject article = new ArticlePageObject().open();
article.verifyTOCpresent();
article.verifyTOCexpanded();
article.verifyTOCsectionLinkWorks(1);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class PlayingVideoTests method PlayingVideoTests_002_ooyala.
@Test(groups = { "Media", "ProviderTests", "PlayingVideoTests", "PlayingVideoTests_002" })
@Execute(onWikia = "sktest123", disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void PlayingVideoTests_002_ooyala() {
String articleName = "VideoOoyalaAgegateInline";
ArticlePageObject article = new ArticlePageObject().open(articleName);
article.verifyVideo();
VideoComponentObject video = article.clickThumbnailVideoInline();
video.verifyVideoEmbedWidth();
video.verifyVideoOoyalaAgeGate();
video.verifyVideoObjectVisible();
video.verifyVideoOoyalaEmbed();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class VetProvidersTests method VetProvidersTests_001_article.
@Execute(asUser = User.USER)
@Test(dataProviderClass = VideoUrlProvider.class, dataProvider = "videoUrl")
public void VetProvidersTests_001_article(String videoUrl, String videoName) {
new ArticleContent().clear();
PageObjectLogging.log("", videoUrl, true);
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
VetAddVideoComponentObject vetAddVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddVideo.addVideoByUrl(videoUrl);
vetOptions.submit();
visualEditMode.verifyVideo();
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyVideo();
article.verifyVideoName(videoName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class VideoSuggestionsTests method Vet_Tests_001_VerifyVideoSuggestionsIsDisplayed.
@Test(groups = { "VideoSuggestions_001" })
@Execute(onWikia = "callofduty", asUser = User.USER)
public void Vet_Tests_001_VerifyVideoSuggestionsIsDisplayed() {
VisualEditModePageObject ck = new ArticlePageObject().open("Frank_Woods").navigateToArticleEditPage();
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
VetAddVideoComponentObject vetAddingVideo = ck.clickVideoButton();
Assertion.assertTrue(vetAddingVideo.areSuggestionsDisplayed(), "Video suggestions are not displayed");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class VetModalAlignmentTests method Vet_Modal_006_rightInModal.
@Test(groups = { "VetModalAlignment_006" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_006_rightInModal() {
new ArticleContent().push("[[File:Batman_-_Following|thumb|right|335 px]]");
VisualEditModePageObject visualEditModePageObject = new ArticlePageObject().open().navigateToArticleEditPage();
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
vetOptions.verifyVideoAlignmentSelected(PositionsVideo.RIGHT);
}
Aggregations