Search in sources :

Example 1 with AceEditor

use of com.wikia.webdriver.pageobjectsfactory.componentobject.AceEditor in project selenium-tests by Wikia.

the class PortableInfoboxTests method verifyCopiedTemplateSyntaxInArticlePresence.

@Test(groups = { "PortableInfoboxTests", "PortableInfobox_002" })
@Execute(asUser = User.USER_9)
public void verifyCopiedTemplateSyntaxInArticlePresence() {
    TemplatePage template = new TemplatePage();
    ArticlePageObject article = new ArticlePageObject();
    PortableInfobox infobox = new PortableInfobox();
    AceEditor editor = new AceEditor();
    template.openArticleByName(wikiURL, String.format("%s:%s", PageContent.TEMPLATE_NAMESPACE, PageContent.INFOBOX_2)).editArticleInSrcUsingDropdown();
    String templateSyntax = editor.getContent();
    (new ArticleContent()).clear();
    article.open();
    new ArticlePurger().purgeArticleAsLoggedUser();
    article.openCurrectArticleSourceMode().addContentInSourceMode(templateSyntax).submitArticle();
    Assertion.assertTrue(infobox.isInfoboxTitleVisible());
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) TemplatePage(com.wikia.webdriver.elements.oasis.pages.TemplatePage) ArticlePurger(com.wikia.webdriver.common.core.helpers.ArticlePurger) PortableInfobox(com.wikia.webdriver.pageobjectsfactory.pageobject.PortableInfobox) AceEditor(com.wikia.webdriver.pageobjectsfactory.componentobject.AceEditor) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)1 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)1 ArticlePurger (com.wikia.webdriver.common.core.helpers.ArticlePurger)1 TemplatePage (com.wikia.webdriver.elements.oasis.pages.TemplatePage)1 AceEditor (com.wikia.webdriver.pageobjectsfactory.componentobject.AceEditor)1 PortableInfobox (com.wikia.webdriver.pageobjectsfactory.pageobject.PortableInfobox)1 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)1 Test (org.testng.annotations.Test)1