use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method insertInfoboxWithParametersInVE.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_003" })
public void insertInfoboxWithParametersInVE() {
new ArticleContent().clear();
ArticlePageObject article = new ArticlePageObject();
article.open();
new ArticlePurger().purgeArticleAsAnon();
VisualEditorPageObject visualEditor = article.openVEModeWithMainEditButton().clickInsertToolButton().clickInsertInfoboxFromInsertToolMenu().selectInfoboxTemplate(2).typeInParameterField(0, new SourceEditModePageObject(driver).getRandomDigits(5)).applyChanges();
Assertion.assertTrue(visualEditor.isInfoboxInsertedInEditorArea());
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyOrderedAndUnorderedListFontSizes.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_001" })
public void verifyOrderedAndUnorderedListFontSizes() {
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.getItemValuesFontSize(1), infobox.getOrderedElementFontSize(1));
Assertion.assertEquals(infobox.getItemValuesFontSize(1), infobox.getUnorderedElementFontSize(1));
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyGroupHeadersPadding.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_003" })
public void verifyGroupHeadersPadding() {
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.isHeaderPaddingLeftAndRightEqual(1));
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method infoboxInfoboxNavigationElements.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_001" })
public void infoboxInfoboxNavigationElements() {
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.isInfoboxNavigationElementVisible(0));
Assertion.assertTrue(infobox.getInternalNavigationLinksNumber() > 0);
Assertion.assertTrue(infobox.getExternalNavigationLinksNumber() > 0);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method insertInfoboxWithParamsInVEusingDarkTheme.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_003" })
@Execute(asUser = User.STAFF)
public void insertInfoboxWithParamsInVEusingDarkTheme() {
new ArticleContent().clear();
ArticlePageObject article = new ArticlePageObject();
SpecialThemeDesignerPageObject theme = new SpecialThemeDesignerPageObject(driver);
theme.openSpecialDesignerPage(wikiURL).selectTheme(3);
theme.submitTheme();
article.open();
new ArticlePurger().purgeArticleAsLoggedUser();
VisualEditorPageObject visualEditor = article.openVEModeWithMainEditButton().clickInsertToolButton().clickInsertInfoboxFromInsertToolMenu().selectInfoboxTemplate(2).typeInParameterField(0, new SourceEditModePageObject(driver).getRandomDigits(5)).applyChanges();
Assertion.assertTrue(visualEditor.isInfoboxInsertedInEditorArea());
}
Aggregations