use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifyVideo.
@Test(groups = { "ArticleFeaturesCRUDUser_007", "Media" })
@Execute(asUser = User.USER)
public void modifyVideo() {
new ArticleContent().push("[[File:Wikia University - How to Contact Wikia|thumb|right|335 px|QAWebdriverCaption]]");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditMode.modifyComponent(Components.VIDEO);
vetOptions.setCaption(PageContent.CAPTION2);
vetOptions.update();
visualEditMode.verifyVideo();
visualEditMode.submitArticle().verifyVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject 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.componentobject.vet.VetOptionsComponentObject 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.componentobject.vet.VetOptionsComponentObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class VetModalCaptionTests method VetModalCaption_005_videoNameNotEditable.
@Test(groups = { "VetModalCaption_005" })
@Execute(asUser = User.USER)
public void VetModalCaption_005_videoNameNotEditable() {
WikiBasePageObject base = new WikiBasePageObject();
articleTitleNotEditable = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject visualEditMode = base.navigateToArticleEditPage(wikiURL, articleTitleNotEditable);
VetAddVideoComponentObject vetAddingVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 1);
vetOptions.verifyNameNotEditable();
}
Aggregations