use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject in project selenium-tests by Wikia.
the class VetArticlePlaceholderTests method userCanAddVideoFromWikiaUsingPlaceholderInEditMode.
@Test(groups = { "VideoArticlePlacehoder_004" })
@Execute(asUser = User.STAFF, onWikia = "mobileregressiontesting")
public void userCanAddVideoFromWikiaUsingPlaceholderInEditMode() {
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.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 0);
vetOptions.setCaption(PageContent.CAPTION);
vetOptions.submit();
visualEditMode.verifyVideo();
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject 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.VetAddVideoComponentObject 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.componentobject.vet.VetAddVideoComponentObject in project selenium-tests by Wikia.
the class VideoPageAdminTests method VideoPageAdmin_001_AddFeaturedVideo.
@Test(groups = { "VideoPageAdmin_001", "Media", "VideoPageAdminTest", "VideosPage" })
@Execute(asUser = User.STAFF, onWikia = URLsContent.VIDEO_TEST_WIKI)
public void VideoPageAdmin_001_AddFeaturedVideo() {
FeaturedVideoAdminPageObject featuredVideoAdminObject = new FeaturedVideoAdminPageObject(driver).open();
// Add video 1
VetAddVideoComponentObject vetAddingVideo = featuredVideoAdminObject.clickAddVideo();
vetAddingVideo.addVideoByUrl(VideoContent.PREMIUM_VIDEO_URL);
featuredVideoAdminObject.verifyVideoAdded(VideoContent.PREMIUM_VIDEO_NAME);
// Save the form and navigate back to featured form
LatestVideoAdminPageObject latestVideoAdminPageObject = featuredVideoAdminObject.clickSaveFeaturedVideoForm(driver);
featuredVideoAdminObject = latestVideoAdminPageObject.clickFeaturedTab(driver);
featuredVideoAdminObject.verifyVideoAdded(VideoContent.PREMIUM_VIDEO_NAME);
// Add video 2 and make sure video title has changed
vetAddingVideo = featuredVideoAdminObject.clickAddVideo();
vetAddingVideo.addVideoByUrl(VideoContent.PREMIUM_VIDEO_URL2);
featuredVideoAdminObject.verifyVideoAdded(VideoContent.PREMIUM_VIDEO_NAME2);
featuredVideoAdminObject.clickSaveFeaturedVideoForm(driver);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject 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