use of com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver in project selenium-tests by Wikia.
the class LockingPostTests method anonymousUserOnMobileCanNotLockAPostOnPostDetailsPage.
// Anonymous user on mobile
@Test(groups = { "discussions-locking-posts-mobile", "discussions-anonymousUserMobileLocking" })
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonymousUserOnMobileCanNotLockAPostOnPostDetailsPage() {
final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnPostDetailsPage();
Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.ANONYMOUS.name()));
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver in project selenium-tests by Wikia.
the class LockingPostTests method userOnDesktopCanNotLockAPostOnUserPostsPage.
@Test(groups = { "discussions-locking-posts-desktop", "discussions-userDesktopLocking" })
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanNotLockAPostOnUserPostsPage() {
final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnUserPostsPage();
Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.USER_2.name()));
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver in project selenium-tests by Wikia.
the class LockingPostTests method anonymousUserOnDesktopCanNotLockAPostOnPostsListPage.
@Test(groups = { "discussions-locking-posts-desktop", "discussions-anonymousUserDesktopLocking" })
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonymousUserOnDesktopCanNotLockAPostOnPostsListPage() {
final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnPostsListPage();
Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.ANONYMOUS.name()));
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver in project selenium-tests by Wikia.
the class LockingPostTests method userOnMobileCanNotLockAPostOnPostsListPage.
@Test(groups = { "discussions-locking-posts-mobile", "discussions-userMobileLocking" })
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanNotLockAPostOnPostsListPage() {
final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnPostsListPage();
Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.USER_2.name()));
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver in project selenium-tests by Wikia.
the class LockingPostTests method userOnMobileCanNotLockAPostOnUserPostsPage.
@Test(groups = { "discussions-locking-posts-mobile", "discussions-userMobileLocking" })
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanNotLockAPostOnUserPostsPage() {
final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnUserPostsPage();
Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.USER_2.name()));
}
Aggregations