Search in sources :

Example 6 with MoreOptionsPopOver

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

the class LockingPostTests method userOnMobileCanNotLockAPostOnPostDetailsPage.

// Second Regular User on mobile
@Test(groups = { "discussions-locking-posts-mobile", "discussions-userMobileLocking" })
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanNotLockAPostOnPostDetailsPage() {
    final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnPostDetailsPage();
    Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.USER_2.name()));
}
Also used : MoreOptionsPopOver(com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 7 with MoreOptionsPopOver

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

the class LockingPostTests method userOnDesktopCanNotLockAPostOnPostDetailsPage.

// Second Regular User on desktop
@Test(groups = { "discussions-locking-posts-desktop", "discussions-userDesktopLocking" })
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanNotLockAPostOnPostDetailsPage() {
    final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnPostDetailsPage();
    Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.USER_2.name()));
}
Also used : MoreOptionsPopOver(com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 8 with MoreOptionsPopOver

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

the class LockingPostTests method anonymousUserOnMobileCanNotLockAPostOnUserPostsPage.

@Test(groups = { "discussions-locking-posts-mobile", "discussions-anonymousUserMobileLocking" })
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonymousUserOnMobileCanNotLockAPostOnUserPostsPage() {
    final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnUserPostsPage();
    Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.ANONYMOUS.name()));
}
Also used : MoreOptionsPopOver(com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 9 with MoreOptionsPopOver

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

the class LockingPostTests method anonymousUserOnMobileCanNotLockAPostOnPostsListPage.

@Test(groups = { "discussions-locking-posts-mobile", "discussions-anonymousUserMobileLocking" })
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonymousUserOnMobileCanNotLockAPostOnPostsListPage() {
    final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnPostsListPage();
    Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.ANONYMOUS.name()));
}
Also used : MoreOptionsPopOver(com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 10 with MoreOptionsPopOver

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

the class LockingPostTests method anonymousUserOnDesktopCanNotLockAPostOnPostDetailsPage.

// Anonymous user on desktop
@Test(groups = { "discussions-locking-posts-desktop", "discussions-anonymousUserDesktopLocking" })
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonymousUserOnDesktopCanNotLockAPostOnPostDetailsPage() {
    final MoreOptionsPopOver moreOptionsPopOver = findMoreOptionsOnPostDetailsPage();
    Assertion.assertFalse(moreOptionsPopOver.hasLockPostOption(), String.format(SHOULD_NOT_LOCK_MESSAGE, User.ANONYMOUS.name()));
}
Also used : MoreOptionsPopOver(com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)12 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)12 MoreOptionsPopOver (com.wikia.webdriver.elements.mercury.components.discussions.common.MoreOptionsPopOver)12 Test (org.testng.annotations.Test)12