use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class VetModalWidthTests method Vet_Modal_001_modalWidth.
@Test(groups = { "VetModalwidth_001" })
@Execute(asUser = User.USER)
public void Vet_Modal_001_modalWidth() {
WikiBasePageObject base = new WikiBasePageObject();
articleTitle = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject visualEditMode = base.navigateToArticleEditPage(wikiURL, articleTitle);
VetAddVideoComponentObject vetAddingVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.adjustWith(MODAL_WIDTH);
vetOptions.submit();
Assertion.assertEquals(visualEditMode.getVideoWidth(), MODAL_WIDTH);
SourceEditModePageObject sourceEditMode = visualEditMode.clickSourceButton();
sourceEditMode.verifySourceModeEnabled();
Assertion.assertEquals(sourceEditMode.getVideoWidth(), MODAL_WIDTH);
PreviewEditModePageObject previewMode = sourceEditMode.previewArticle();
Assertion.assertEquals(previewMode.getVideoWidth(), MODAL_WIDTH);
previewMode.closePreviewModal();
ArticlePageObject article = sourceEditMode.submitArticle();
Assertion.assertEquals(article.getVideoThumbnailWidth(), MODAL_WIDTH);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class BlogFeaturesTests method BlogFeatures_004_AddingVideo.
@Test(groups = { "BlogFeatures_004", "BlogFeaturesTests", "Media" })
@Execute(asUser = User.USER, onWikia = "mobileregressiontesting")
public void BlogFeatures_004_AddingVideo() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialCreatePage createPage = base.openSpecialCreateBlogPage(wikiURL);
String blogPostTitle = PageContent.BLOG_POST_NAME_PREFIX + createPage.getTimeStamp();
VisualEditModePageObject blogEdit = createPage.populateTitleField(blogPostTitle);
VetAddVideoComponentObject vetAddVideo = blogEdit.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.setCaption(PageContent.CAPTION);
vetOptions.submit();
blogEdit.verifyVideo();
BlogPageObject blogPage = blogEdit.submitBlog();
blogPage.verifyVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_016_Video.
@Test(groups = { "RTE_extended_3", "RTE_extended_016", "Media" })
public void RTE_016_Video() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
VetAddVideoComponentObject vetAddingVideo = source.clickAddVideo();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.setCaption(PageContent.CAPTION);
vetOptions.submit();
source.checkSourceVideoContent("[[" + VideoContent.YOUTUBE_VIDEO_WIKITEXT + PageContent.CAPTION + "]]");
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class VetModalCaptionTests method VetModalCaption_001_modalCaption.
@Test(groups = { "VetModalCaption_001" })
@Execute(asUser = User.USER)
public void VetModalCaption_001_modalCaption() {
WikiBasePageObject base = new WikiBasePageObject();
articleTitleCaption = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject visualEditMode = base.navigateToArticleEditPage(wikiURL, articleTitleCaption);
VetAddVideoComponentObject vetAddingVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
caption = PageContent.CAPTION + vetOptions.getTimeStamp();
vetOptions.setCaption(caption);
vetOptions.submit();
Assertion.assertEquals(visualEditMode.getVideoCaption(), caption);
SourceEditModePageObject sourceEditMode = visualEditMode.clickSourceButton();
sourceEditMode.verifySourceModeEnabled();
Assertion.assertTrue(sourceEditMode.getContent().contains(caption));
PreviewEditModePageObject previewMode = sourceEditMode.previewArticle();
Assertion.assertEquals(previewMode.getVideoCaption(), caption);
previewMode.closePreviewModal();
ArticlePageObject article = sourceEditMode.submitArticle();
Assertion.assertEquals(article.getVideoCaption(), caption);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject 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);
}
Aggregations