Search in sources :

Example 6 with ErrorMessages

use of com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages in project selenium-tests by Wikia.

the class ZeroErrorStateTests method userSeesProperMessageWhenOpensEmptyPostsListPage.

private void userSeesProperMessageWhenOpensEmptyPostsListPage() {
    ErrorMessages errorMessage = new PostsListPage().open().getErrorMessages();
    Assertion.assertTrue(errorMessage.isEmptyPostsListMessageDisplayed());
    Assertion.assertEquals(errorMessage.getEmptyPostsListMessageText(), "No posts yet. Get the discussion started, create the first post now!");
}
Also used : ErrorMessages(com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages) PostsListPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)

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