use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class GuidelinesTests method discussionsModeratorOnDesktopCanClickEditGuidelines.
@Test(groups = "discussions-discussionsModeratorOnDesktopCanSeeEditGuidelines")
@Execute(asUser = User.DISCUSSIONS_MODERATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsModeratorOnDesktopCanClickEditGuidelines() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertTrue(guidelinesPage.isEditButtonDisplayed());
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class GuidelinesTests method discussionsModeratorOnDesktopCanClickBackToDiscussions.
@Test(groups = "discussions-discussionsModeratorOnDesktopCanClickBackToDiscussions")
@Execute(asUser = User.DISCUSSIONS_MODERATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsModeratorOnDesktopCanClickBackToDiscussions() {
DiscussionsPage mainDiscussionPage = new GuidelinesPage().open().clickBackToDiscussions();
Assertion.assertTrue(mainDiscussionPage.isWikiaHomeLinkDisplayed());
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LockingPostTests method staffUserOnMobileCanUnlockPostLockedByStaffOnPostDetailsPage.
@Test(groups = { "discussions-locking-posts-mobile", "discussions-staffUserMobileLocking" })
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void staffUserOnMobileCanUnlockPostLockedByStaffOnPostDetailsPage() {
PostEntity postEntity = unlockPostLockedByStaff();
final String name = User.STAFF.name();
Assertion.assertFalse(postEntity.isLocked(), String.format(SHOULD_UNLOCK_MESSAGE, name, name));
}
use of com.wikia.webdriver.common.core.annotations.InBrowser 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.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LockingPostTests method staffUserOnDesktopCanUnlockPostLockedByStaffOnPostDetailsPage.
@Test(groups = { "discussions-locking-posts-desktop", "discussions-staffUserDesktopLocking" })
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void staffUserOnDesktopCanUnlockPostLockedByStaffOnPostDetailsPage() {
PostEntity postEntity = unlockPostLockedByStaff();
final String name = User.STAFF.name();
Assertion.assertFalse(postEntity.isLocked(), String.format(SHOULD_UNLOCK_MESSAGE, name, name));
}
Aggregations