Search in sources :

Example 1 with FeaturedVideoAdminPageObject

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);
}
Also used : FeaturedVideoAdminPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.videohomepage.FeaturedVideoAdminPageObject) VetAddVideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject) LatestVideoAdminPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.videohomepage.LatestVideoAdminPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)1 VetAddVideoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject)1 FeaturedVideoAdminPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.videohomepage.FeaturedVideoAdminPageObject)1 LatestVideoAdminPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.videohomepage.LatestVideoAdminPageObject)1 Test (org.testng.annotations.Test)1