use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesArticleTests method CategoriesTestsArticle_002_anonSuggestions.
@Test(groups = { "CategoriesTestsArticle_002", "CategoriesTestsArticle" })
public void CategoriesTestsArticle_002_anonSuggestions() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
ArticlePageObject article = new ArticlePageObject().open();
String desiredCategory = article.addCategorySuggestions(PageContent.CATEGORY_NAME_PREFIX, 2);
article.submitCategory();
article.verifyCategoryPresent(desiredCategory);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class VetModalCaptionTests method VetModalCaption_002_captionInModal.
@Test(groups = { "VetModalCaption_002" })
@Execute(asUser = User.USER)
public void VetModalCaption_002_captionInModal() {
String captionText = String.format("Caption-%d", DateTime.now().getMillis());
new ArticleContent().push(String.format("[[File:WikiEvolution - PoznaĆska Wiki|thumb|right|335 px|%s]]", captionText));
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) new VisualEditModePageObject().open().modifyComponent(Components.VIDEO);
vetOptions.verifyCaption(captionText);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class VetModalAlignmentTests method Vet_Modal_002_leftInModal.
@Test(groups = { "VetModalAlignment_002" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_002_leftInModal() {
new ArticleContent().push("[[File:Batman_-_Following|thumb|left|335 px]]");
VisualEditModePageObject visualEditModePageObject = new ArticlePageObject().open().navigateToArticleEditPage();
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
vetOptions.verifyVideoAlignmentSelected(PositionsVideo.LEFT);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class VetModalAlignmentTests method Vet_Modal_004_centerInModal.
@Test(groups = { "VetModalAlignment_004" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_004_centerInModal() {
new ArticleContent().push("[[File:Batman_-_Following|thumb|center|335 px]]");
VisualEditModePageObject visualEditModePageObject = new ArticlePageObject().open().navigateToArticleEditPage();
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
vetOptions.verifyVideoAlignmentSelected(PositionsVideo.CENTER);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class VideosModuleTests method visitorCanSeeVideosModuleOnArticleAndFilePages.
@Test(groups = { "VideosModule", "VideosModuleTest_001", "Media" })
public void visitorCanSeeVideosModuleOnArticleAndFilePages() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
VideosModuleComponentObject videosModule = new VideosModuleComponentObject(driver);
new ArticlePageObject().open();
videosModule.verifyVideosModuleShowing();
new FilePage().open(VideoContent.YOUTUBE_VIDEO_URL2_FILENAME);
videosModule.verifyVideosModuleShowing();
}
Aggregations