use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject in project selenium-tests by Wikia.
the class FilePageTests method filePage004_delete.
/**
* Verify that a video can be deleted from the File page
*/
@RelatedIssue(issueID = "MAIN-4294")
@Test(groups = { "FilePage", "filePage004_delete", "Media" })
public void filePage004_delete() {
// Go to Special:Videos to add a video
YoutubeVideo video = YoutubeVideoProvider.getLatestVideoForQuery("data");
SpecialVideosPageObject specialVideos = new SpecialVideosPageObject(driver);
specialVideos.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
specialVideos.openSpecialVideoPage(wikiURL);
// Add a Youtube video we'll delete
VetAddVideoComponentObject vetAddingVideo = specialVideos.clickAddAVideo();
vetAddingVideo.addVideoByUrl(video.getUrl());
// Verify the video is actually there
specialVideos.verifyVideoAdded(video.getTitle());
// Now delete the video
FilePage filePage = new FilePage().open(video.getFileName());
DeletePageObject deletePage = filePage.deletePage();
deletePage.submitDeletion();
// Go back to the file page and make sure its gone
filePage = filePage.open(video.getFileName());
filePage.verifyEmptyFilePage();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject in project selenium-tests by Wikia.
the class VetSpecialVideosTests method SpecialVideos_001_Provider.
@Test(groups = { "VetTests001" })
@Execute(asUser = User.USER)
public void SpecialVideos_001_Provider() {
YoutubeVideo video = YoutubeVideoProvider.getLatestVideoForQuery("flower");
SpecialVideosPageObject specialVideos = new SpecialVideosPageObject(driver);
specialVideos.openSpecialVideoPage(wikiURL);
VetAddVideoComponentObject vetAddingVideo = specialVideos.clickAddAVideo();
vetAddingVideo.addVideoByUrl(video.getUrl());
specialVideos.verifyVideoAdded(video.getTitle());
FilePage filePage = new FilePage().open(video.getFileName());
// filePage.getGlobalNavigation().openAccountNavigation().clickLogOut();
filePage.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
DeletePageObject deletePage = filePage.deletePage();
deletePage.submitDeletion();
filePage = filePage.open(video.getFileName());
filePage.verifyEmptyFilePage();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject in project selenium-tests by Wikia.
the class VetSpecialVideosTests method SpecialVideos_002_Library.
@Test(enabled = false, groups = { "VetTests002" })
@Execute(asUser = User.USER)
public void SpecialVideos_002_Library() {
SpecialVideosPageObject specialVideos = new SpecialVideosPageObject(driver);
specialVideos.openSpecialVideoPage(wikiURL);
VetAddVideoComponentObject vetAddingVideo = specialVideos.clickAddAVideo();
vetAddingVideo.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 0);
specialVideos.verifyVideoAdded(vetAddingVideo.getVideoName());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_006_verifyCarousel.
@Test(groups = "Lightbox_006")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_006_verifyCarousel() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialVideosPageObject specialVideos = base.openSpecialVideoPage(wikiURL);
LightboxComponentObject lightbox = specialVideos.openLightboxForGridVideo(0);
lightbox.clickPinButton();
lightbox.clickCarouselRight();
lightbox.clickCarouselLeft();
lightbox.verifyCarouselLeftDisabled();
}
Aggregations