Search in sources :

Example 1 with PostsCreatorMobile

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

the class CreatingPostTests method userOnMobileMustBeLoggedInToUsePostCreator.

/**
   * TESTING METHODS SECTION
   */
private void userOnMobileMustBeLoggedInToUsePostCreator() {
    PostsCreatorMobile postsCreator = new PostsListPage().open().getPostsCreatorMobile();
    Assertion.assertTrue(postsCreator.click().isSignInDialogVisible());
    postsCreator.clickOkButtonInSignInDialog();
    Assertion.assertTrue(postsCreator.click().isSignInDialogVisible());
    postsCreator.clickSignInButtonInSignInDialog();
    Assertion.assertTrue(driver.getCurrentUrl().contains(MercurySubpages.JOIN_PAGE));
}
Also used : PostsListPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage) PostsCreatorMobile(com.wikia.webdriver.elements.mercury.components.discussions.mobile.PostsCreatorMobile)

Aggregations

PostsCreatorMobile (com.wikia.webdriver.elements.mercury.components.discussions.mobile.PostsCreatorMobile)1 PostsListPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)1