use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreatingPostTests method anonUserOnDesktopWhenScrollsDownThenSeesStickyEditor.
@Test(groups = DESKTOP)
@Execute(asUser = User.ANONYMOUS, onWikia = MercuryWikis.DISCUSSIONS_1)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopWhenScrollsDownThenSeesStickyEditor() {
PostsListPage postsListPage = new PostsListPage().open();
postsListPage.getPost().scrollToLoadMoreButton();
PostsCreatorDesktop postsCreator = postsListPage.getPostsCreatorDesktop();
Assertion.assertFalse(postsCreator.isExpanded());
Assertion.assertTrue(postsCreator.isSticky());
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreatingReplyTests method userOnDesktopShouldFollowPostWhenAddedReplyOnPostDetailsPage.
@Test(groups = DESKTOP)
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopShouldFollowPostWhenAddedReplyOnPostDetailsPage() {
final PostDetailsPage page = new PostDetailsPage().open(createPostAsUserRemotely().getId());
final ReplyCreator replyCreator = page.getReplyCreatorDesktop();
assertThatPostIsFollowedWhenReplyAdded(page, replyCreator);
assertThatPostCanBeUnfollowed(page);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreatingReplyTests method anonUserOnMobileCanNotWriteNewReply.
// Anonymous on mobile
@Test(groups = MOBILE)
@Execute(asUser = User.ANONYMOUS, onWikia = MercuryWikis.DISCUSSIONS_2)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonUserOnMobileCanNotWriteNewReply() {
final PostDetailsPage page = new PostDetailsPage().open(createPostAsUserRemotely().getId());
userOnMobileMustBeLoggedInToUseReplyCreator(page.getReplyCreatorMobile());
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreatingReplyTests method userOnMobileShouldFollowPostWhenAddedReplyOnPostDetailsPage.
@Test(groups = MOBILE)
@Execute(asUser = User.USER_2, onWikia = MercuryWikis.DISCUSSIONS_2)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileShouldFollowPostWhenAddedReplyOnPostDetailsPage() {
final PostDetailsPage page = new PostDetailsPage().open(createPostAsUserRemotely().getId());
final ReplyCreator replyCreator = page.getReplyCreatorMobile();
assertThatPostIsFollowedWhenReplyAdded(page, replyCreator);
assertThatPostCanBeUnfollowed(page);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreatingReplyTests method userOnDesktopCanCreateReplyOnPostDetailsPage.
@Test(groups = DESKTOP)
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanCreateReplyOnPostDetailsPage() {
final PostDetailsPage page = new PostDetailsPage().open(createPostAsUserRemotely().getId());
final ReplyCreator replyCreator = page.getReplyCreatorDesktop();
assertThatUserCanCreateReply(page, replyCreator);
}
Aggregations