use of com.wikia.webdriver.pageobjectsfactory.pageobject.videohomepage.FeaturedVideoAdminPageObject 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);
}
Aggregations