Search in sources :

Example 1 with SpecialWhatLinksHerePageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWhatLinksHerePageObject in project selenium-tests by Wikia.

the class PortableInfoboxTests method verifyImagesInWhatLinksHerePage.

@Test(groups = { "PortableInfoboxTests", "PortableInfobox_002" })
public void verifyImagesInWhatLinksHerePage() {
    new ArticleContent().push(String.format("[[%s]]", PageContent.INFOBOX_2), "Infobox2_WhatLinksHere");
    // provide an article linking to testing Infobox
    new TemplateContent().push(INFOBOX2_TEMPLATE, PageContent.INFOBOX_2);
    new ArticleContent().push(INFOBOX2_INVOCATION, PageContent.INFOBOX_2);
    ArticlePageObject article = new ArticlePageObject();
    article.open("Infobox2_WhatLinksHere");
    String articleName = article.getArticleName();
    SpecialWhatLinksHerePageObject whatLinksHere = article.openSpecialWhatLinksHere(wikiURL);
    whatLinksHere.clickPageInputField().typeInfoboxImageName("Infobox2").clickShowButton();
    Assertion.assertTrue(whatLinksHere.whatLinksHereContainsArticleName(articleName));
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) TemplateContent(com.wikia.webdriver.common.core.api.TemplateContent) SpecialWhatLinksHerePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWhatLinksHerePageObject) Test(org.testng.annotations.Test)

Aggregations

ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)1 TemplateContent (com.wikia.webdriver.common.core.api.TemplateContent)1 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)1 SpecialWhatLinksHerePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWhatLinksHerePageObject)1 Test (org.testng.annotations.Test)1