use of com.wikia.webdriver.pageobjectsfactory.pageobject.PortableInfobox in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyEmptyTagsAreNotAppearing.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_003" })
public void verifyEmptyTagsAreNotAppearing() {
new ArticleContent().push(INFOBOX_EMPTY_TAGS_INVOCATION, PageContent.INFOBOX_1);
PortableInfobox infobox = new PortableInfobox();
infobox.open(PageContent.INFOBOX_1);
Assertion.assertTrue(infobox.infoboxContainsEmptyTag());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.PortableInfobox in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyInternalLinksRedirecting.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_001", "PortableInfoboxLinksTests" })
public void verifyInternalLinksRedirecting() {
new ArticleContent().push("article cannot be empty", PageContent.INFOBOX_1);
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 internalLinkName = infobox.getInternalLinkRedirectTitle(0);
String internalURL = infobox.clickInternalLinkWithIndex(0).waitForUrlToContain(internalLinkName).getCurrentUrl();
Assertion.assertEquals(internalLinkName, internalURL);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.PortableInfobox 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.pageobjectsfactory.pageobject.PortableInfobox 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.pageobjectsfactory.pageobject.PortableInfobox 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);
}
Aggregations