Search in sources :

Example 1 with SpecialUploadPageObject

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);
}
Also used : SpecialUploadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialUploadPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) FilePage(com.wikia.webdriver.pageobjectsfactory.pageobject.special.filepage.FilePage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)1 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)1 SpecialUploadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialUploadPageObject)1 FilePage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.filepage.FilePage)1 Test (org.testng.annotations.Test)1