use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class VetArticleCommentsTests method RegularUserCanAddVideoInArticleCommentEditorByFindingWikiaVideo.
@Test(groups = { "VetArticleComments_002" })
@Execute(asUser = User.USER)
public void RegularUserCanAddVideoInArticleCommentEditorByFindingWikiaVideo() {
new ArticleContent().clear();
ArticlePageObject article = new ArticlePageObject().open();
MiniEditorComponentObject editor = article.triggerCommentArea();
VetAddVideoComponentObject vetAddingVideo = editor.clickAddVideo();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 0);
vetOptions.setCaption(PageContent.CAPTION);
String desiredVideoName = vetOptions.getVideoName();
vetOptions.submit();
Assertion.assertTrue(article.getArticleComment().isVideoVisible(), "Video is not visible");
article.submitComment();
Assertion.assertTrue(article.isVideoCommentPresent(desiredVideoName), "Video comment doesn't have desired name");
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class VetArticlePlaceholderTests method userCanAddVideoFromWikiaUsingPlaceholder.
@Test(groups = { "VideoArticlePlacehoder_002" })
@Execute(asUser = User.USER, onWikia = "mobileregressiontesting")
public void userCanAddVideoFromWikiaUsingPlaceholder() {
new ArticleContent().push(SourceModeContent.PLACEHOLDERS);
ArticlePageObject article = new ArticlePageObject().open();
VetAddVideoComponentObject vetAddingVideo = article.clickAddVideoPlaceholder();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 0);
vetOptions.submit();
article.verifyVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class VetArticlePlaceholderTests method userCanAddVideoByUrlUsingPlaceholderInEditMode.
@Test(groups = { "VideoArticlePlacehoder_003" })
@Execute(asUser = User.STAFF, onWikia = "mobileregressiontesting")
public void userCanAddVideoByUrlUsingPlaceholderInEditMode() {
new ArticleContent().push(SourceModeContent.PLACEHOLDERS);
// Added cause of MAIN-6374 issue
new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
VetAddVideoComponentObject vetAddingVideo = (VetAddVideoComponentObject) visualEditMode.modifyComponent(Components.VIDEO_PLACEHOLDER);
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.setCaption(PageContent.CAPTION);
vetOptions.submit();
visualEditMode.verifyVideo();
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.
the class VetArticlePlaceholderTests method userCanAddVideoByUrlUsingPlaceholder.
@Test(groups = { "VideoArticlePlacehoder_001" })
@Execute(asUser = User.USER, onWikia = "mobileregressiontesting")
public void userCanAddVideoByUrlUsingPlaceholder() {
new ArticleContent().push(SourceModeContent.PLACEHOLDERS);
ArticlePageObject article = new ArticlePageObject().open();
VetAddVideoComponentObject vetAddingVideo = article.clickAddVideoPlaceholder();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.submit();
article.verifyVideo();
}
Aggregations