use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class HeaderTest method mercury_header_checkElementsVisibilityWithInfoboxAndWithHeroImage.
@Test(groups = "mercury_header_checkElementsVisibilityWithInfoboxAndWithHeroImage")
public void mercury_header_checkElementsVisibilityWithInfoboxAndWithHeroImage() {
Header header = new ArticlePage().open(MercurySubpages.INFOBOX_1).getHeader();
Assertion.assertTrue(header.isHeaderVisible(), String.format(ELEMENT_EXPECTATION_MESSAGE_TEMPLATE, HEADER_MESSAGE, VISIBLE_MESSAGE));
Assertion.assertTrue(header.isPageTitleVisible(), String.format(ELEMENT_EXPECTATION_MESSAGE_TEMPLATE, PAGE_TITLE_MESSAGE, VISIBLE_MESSAGE));
Assertion.assertTrue(header.isHeroImageVisible(), String.format(ELEMENT_EXPECTATION_MESSAGE_TEMPLATE, HERO_IMAGE_MESSAGE, VISIBLE_MESSAGE));
}
use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class HeaderTest method mercury_header_heroImageIsRectangle.
@Test(groups = "mercury_header_heroImageIsRectangle")
public void mercury_header_heroImageIsRectangle() {
Header header = new ArticlePage().open(MercurySubpages.INFOBOX_4).getHeader();
Assertion.assertFalse(header.isHeroImageSquare(), String.format(ELEMENT_EXPECTATION_MESSAGE_TEMPLATE, HERO_IMAGE_MESSAGE, "rectangular (not square)"));
}
use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class LoginTests method anonCanNotLogInWithBlankUsername.
@Test(groups = "login-anonCanNotLogInWithBlankUsername")
public void anonCanNotLogInWithBlankUsername() {
SignInPage signIn = new ArticlePage().open(MercurySubpages.MAIN_PAGE).getTopbar().openNavigation().clickOnSignInRegisterButton().navigateToSignIn();
signIn.typePassword(Configuration.getCredentials().password10);
assertTrue(signIn.submitButtonNotClickable());
}
use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class LoginTests method anonCanNotLogInWithInvalidUsername.
@Test(groups = "login-anonCanNotLogInWithInvalidUsername")
public void anonCanNotLogInWithInvalidUsername() {
SignInPage signIn = new ArticlePage().open(MercurySubpages.MAIN_PAGE).getTopbar().openNavigation().clickOnSignInRegisterButton().navigateToSignIn();
signIn.login(String.valueOf(DateTime.now().getMillis()), Configuration.getCredentials().password10);
assertTrue(signIn.getError().contains(EXPECTED_ERROR_MESSAGE));
}
use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class CategoryPageTest method mercury_category_navigateToCategoryMemberPage.
@Test(groups = "mercury_category_navigateToCategoryMemberPage")
public void mercury_category_navigateToCategoryMemberPage() {
final String categoryName = String.format("Category:%s", TestContext.getCurrentMethodName());
final String articleContent = "Test article content";
new ArticleContent().push(String.format("%s [[%s]]", articleContent, categoryName));
ArticlePage article = new CategoryPage().open(categoryName).navigateToCategoryMemberPage();
Assert.assertEquals(articleContent, article.getArticleContent());
}
Aggregations