use of com.wikia.webdriver.common.core.api.TemplateContent 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.TemplateContent 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));
}
use of com.wikia.webdriver.common.core.api.TemplateContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyLightboxVisibilityAfterClickingImage.
@InBrowser(browser = Browser.FIREFOX, browserSize = "1200x720")
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_002" })
public void verifyLightboxVisibilityAfterClickingImage() {
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.clickImage().isLightboxVisible());
}
use of com.wikia.webdriver.common.core.api.TemplateContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyElementsVisibility.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_001" })
public void verifyElementsVisibility() {
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.getHeadersNumber() > 0);
Assertion.assertTrue(infobox.isImageVisible());
Assertion.assertTrue(infobox.isInfoboxTitleVisible());
Assertion.assertTrue(infobox.getBoldElementsNumber() > 0);
Assertion.assertTrue(infobox.getItalicElementsNumber() > 0);
Assertion.assertTrue(infobox.areQuotationMarksPresented());
Assertion.assertTrue(infobox.isReferenceElementVisible());
}
use of com.wikia.webdriver.common.core.api.TemplateContent in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyInfoboxLayoutChange.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_002" })
@Execute(asUser = User.STAFF)
public void verifyInfoboxLayoutChange() {
new TemplateContent().push(INFOBOX2_TEMPLATE, PageContent.INFOBOX_2);
new ArticleContent().push(INFOBOX2_INVOCATION, PageContent.INFOBOX_2);
PortableInfobox infobox = new PortableInfobox();
SpecialThemeDesignerPageObject theme = new SpecialThemeDesignerPageObject(driver);
theme.openSpecialDesignerPage(wikiURL).selectTheme(4);
theme.submitTheme();
infobox.open(PageContent.INFOBOX_2);
new ArticlePurger().purgeArticleAsLoggedUser();
String oldBackground = infobox.getBackgroundColor();
theme.openSpecialDesignerPage(wikiURL).selectTheme(1);
theme.submitTheme();
infobox.open(PageContent.INFOBOX_2);
new ArticlePurger().purgeArticleAsLoggedUser();
Assertion.assertNotEquals(oldBackground, infobox.getBackgroundColor());
}
Aggregations