use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesTestsEditMode method CategoriesTestsArticleEdit_002_anonDelete.
@Test(groups = { "CategoriesTestsArticleEdit_002", "CategoriesTestsArticleEditMode" })
public void CategoriesTestsArticleEdit_002_anonDelete() {
new ArticleContent().clear();
VisualEditModePageObject visual = new VisualEditModePageObject().open();
String categoryName = PageContent.CATEGORY_NAME_PREFIX + visual.getTimeStamp();
visual.typeCategoryName(categoryName);
visual.submitCategory();
visual.verifyCategoryPresent(categoryName);
visual.removeCategory(categoryName);
visual.verifyCategoryNotPresent(categoryName);
}
use of com.wikia.webdriver.common.core.api.ArticleContent 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.common.core.api.ArticleContent 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.common.core.api.ArticleContent 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);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class VetModalAlignmentTests method Vet_Modal_005_rightOnPage.
@Test(groups = { "VetModalAlignment_005" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_005_rightOnPage() {
new ArticleContent().push();
VisualEditModePageObject visualEditMode = new ArticlePageObject().open().navigateToArticleEditPage();
VetAddVideoComponentObject vetAddingVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.adjustPosition(PositionsVideo.RIGHT);
vetOptions.submit();
visualEditMode.verifyVideoPosition(PositionsVideo.RIGHT);
SourceEditModePageObject sourceEditMode = visualEditMode.clickSourceButton();
sourceEditMode.verifySourceModeEnabled();
sourceEditMode.verifyVideoAlignment(PositionsVideo.RIGHT);
PreviewEditModePageObject previewMode = sourceEditMode.previewArticle();
previewMode.verifyVideoAlignment(PositionsVideo.RIGHT);
previewMode.closePreviewModal();
ArticlePageObject article = sourceEditMode.submitArticle();
article.verifyVideoAlignment(PositionsVideo.RIGHT);
}
Aggregations