use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialUploadPageObject in project selenium-tests by Wikia.
the class ImageServingTests method ImageServing_002_SpecialUploadTest.
@Test(groups = { "ImageServing_002", "ImageServing" }, dataProviderClass = FileDataProvider.class, dataProvider = "getFileNames")
@Execute(asUser = User.USER)
public void ImageServing_002_SpecialUploadTest(String fileName) {
WikiBasePageObject base = new WikiBasePageObject();
SpecialUploadPageObject upload = base.openSpecialUpload(wikiURL);
upload.selectFileToUpload(PageContent.FILE);
upload.typeFileName(fileName);
upload.checkIgnoreAnyWarnings();
FilePage filePage = upload.clickUploadButton();
filePage.verifySelectedTab("about");
filePage.verifyHeader(fileName);
String imageURL = filePage.getImageUrl();
String imageThumbnailURL = filePage.getImageThumbnailUrl();
filePage.verifyURLStatus(200, imageURL);
filePage.verifyURLStatus(200, imageThumbnailURL);
}
Aggregations