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());
}
Aggregations