Search in sources :

Example 1 with ErrorMessages

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);
}
Also used : ErrorMessages(com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages) PostDetailsPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage)

Example 2 with ErrorMessages

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);
}
Also used : ErrorMessages(com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages) UserPostsPage(com.wikia.webdriver.elements.mercury.pages.discussions.UserPostsPage)

Example 3 with ErrorMessages

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);
}
Also used : ErrorMessages(com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages) ReportedPostsAndRepliesPage(com.wikia.webdriver.elements.mercury.pages.discussions.ReportedPostsAndRepliesPage)

Example 4 with ErrorMessages

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);
}
Also used : ErrorMessages(com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages) PostDetailsPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage)

Example 5 with ErrorMessages

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);
}
Also used : ErrorMessages(com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages) UserPostsPage(com.wikia.webdriver.elements.mercury.pages.discussions.UserPostsPage)

Aggregations

ErrorMessages (com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages)6 PostDetailsPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage)2 UserPostsPage (com.wikia.webdriver.elements.mercury.pages.discussions.UserPostsPage)2 PostsListPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)1 ReportedPostsAndRepliesPage (com.wikia.webdriver.elements.mercury.pages.discussions.ReportedPostsAndRepliesPage)1