use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject 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.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject 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.editmode.VisualEditModePageObject 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.editmode.VisualEditModePageObject 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.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject 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