Search in sources :

Example 1 with Replies

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

the class ZeroErrorStateTests method userSeesProperMessageWhenOpensPostDetailsPageWithoutReplies.

private void userSeesProperMessageWhenOpensPostDetailsPageWithoutReplies() {
    final String postId = DiscussionsOperations.using(User.USER, driver).createPostWithUniqueData().getId();
    final Replies replies = new PostDetailsPage().open(postId).getReplies();
    Assertion.assertTrue(replies.isEmpty(), NO_REPLIES_UNDER_POST_MESSAGE);
    Assertion.assertTrue(replies.hasNoRepliesIcon(), NO_REPLIES_ICON_MESSAGE);
    Assertion.assertEquals(replies.getNoRepliesMessage(), NO_REPLIES_MESSAGE);
}
Also used : PostDetailsPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage) Replies(com.wikia.webdriver.elements.mercury.components.discussions.common.Replies)

Aggregations

Replies (com.wikia.webdriver.elements.mercury.components.discussions.common.Replies)1 PostDetailsPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage)1