use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyRedlinksRedirecting.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_001" })
public void verifyRedlinksRedirecting() {
new TemplateContent().push(INFOBOX2_TEMPLATE, PageContent.INFOBOX_2);
new ArticleContent().push(INFOBOX2_INVOCATION, PageContent.INFOBOX_2);
PortableInfobox infobox = new PortableInfobox();
infobox.open(PageContent.INFOBOX_2);
Assertion.assertTrue(infobox.clickRedLinkWithIndex(0).isCreateNewArticleModalVisible());
}
use of com.wikia.webdriver.common.core.api.ArticleContent 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());
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method infoboxImageOnCategoryPage.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_002" })
@Execute(asUser = User.USER)
public void infoboxImageOnCategoryPage() {
new TemplateContent().push(INFOBOX2_TEMPLATE, PageContent.INFOBOX_2);
new ArticleContent().push(INFOBOX2_INVOCATION, PageContent.INFOBOX_2);
PortableInfobox infobox = new PortableInfobox();
infobox.open(PageContent.INFOBOX_2);
String imageName = infobox.getDataImageName();
CategoryPageObject categoryPage = infobox.clickCategoryWithIndex(0);
new ArticlePurger().purgeArticleAsLoggedUser();
String categoryImageURL = categoryPage.getImageURLFromGallery(PageContent.INFOBOX_2);
Assertion.assertTrue(categoryImageURL.contains(imageName));
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyVisibilityOfTabberAndItsImages.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_002" })
public void verifyVisibilityOfTabberAndItsImages() {
new TemplateContent().push(INFOBOX2_TEMPLATE, PageContent.INFOBOX_2);
new ArticleContent().push(INFOBOX2_INVOCATION, PageContent.INFOBOX_2);
PortableInfobox infobox = new PortableInfobox();
infobox.open(PageContent.INFOBOX_2);
new ArticlePurger().purgeArticleAsAnon();
Assertion.assertTrue(infobox.isTabberVisible().isTabberImageVisible());
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyHorizontalGroupFontSize.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_001" })
public void verifyHorizontalGroupFontSize() {
new TemplateContent().push(INFOBOX2_TEMPLATE, PageContent.INFOBOX_2);
new ArticleContent().push(INFOBOX2_INVOCATION, PageContent.INFOBOX_2);
PortableInfobox infobox = new PortableInfobox();
infobox.open(PageContent.INFOBOX_2);
Assertion.assertEquals(infobox.getItemLabelsFontSize(0), infobox.getHorizontalItemLabelFontSize(0));
Assertion.assertEquals(infobox.getItemValuesFontSize(0), infobox.getHorizontalItemValuesFontSize(0));
}
Aggregations