use of com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages in project selenium-tests by Wikia.
the class ZeroErrorStateTests method userOnDesktopSeesProperMessageWhenOpensEmptyPostDetailsPage.
private void userOnDesktopSeesProperMessageWhenOpensEmptyPostDetailsPage() {
ErrorMessages errorMessage = new PostDetailsPage().openEmptyPost().getErrorMessages();
Assertion.assertTrue(errorMessage.isErrorMessagePresent());
Assertion.assertEquals(errorMessage.getErrorMessageText(), MESSAGE_1 + MESSAGE_2);
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages in project selenium-tests by Wikia.
the class ZeroErrorStateTests method userOnMobileSeesProperMessageWhenOpensNonExistingUserPostsPage.
private void userOnMobileSeesProperMessageWhenOpensNonExistingUserPostsPage() {
ErrorMessages errorMessage = new UserPostsPage().open().getErrorMessages();
Assertion.assertTrue(errorMessage.isErrorMessagePresent());
Assertion.assertEquals(errorMessage.getErrorMessageText(), MESSAGE_1 + MESSAGE_3);
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages in project selenium-tests by Wikia.
the class ZeroErrorStateTests method userSeesProperMessageWhenOpensEmptyReportedPostsPage.
private void userSeesProperMessageWhenOpensEmptyReportedPostsPage() {
ErrorMessages errorMessage = new ReportedPostsAndRepliesPage().open().getErrorMessages();
Assertion.assertTrue(errorMessage.isErrorMessagePresent());
Assertion.assertEquals(errorMessage.getErrorMessageText(), "There are no reported posts or replies.\n" + MESSAGE_2);
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages in project selenium-tests by Wikia.
the class ZeroErrorStateTests method userOnMobileSeesProperMessageWhenOpensEmptyPostDetailsPage.
private void userOnMobileSeesProperMessageWhenOpensEmptyPostDetailsPage() {
ErrorMessages errorMessage = new PostDetailsPage().openEmptyPost().getErrorMessages();
Assertion.assertTrue(errorMessage.isErrorMessagePresent());
Assertion.assertEquals(errorMessage.getErrorMessageText(), MESSAGE_1 + MESSAGE_3);
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages in project selenium-tests by Wikia.
the class ZeroErrorStateTests method userOnDesktopSeesProperMessageWhenOpensNonExistingUserPostsPage.
/**
* TESTING METHODS SECTION
*/
private void userOnDesktopSeesProperMessageWhenOpensNonExistingUserPostsPage() {
ErrorMessages errorMessage = new UserPostsPage().open().getErrorMessages();
Assertion.assertTrue(errorMessage.isErrorMessagePresent());
Assertion.assertEquals(errorMessage.getErrorMessageText(), MESSAGE_1 + MESSAGE_2);
}
Aggregations