use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LockingPostTests method discussionsModeratorOnDesktopCanLockPostOnPostDetailsPage.
// Discussions moderator on desktop
@Test(groups = { "discussions-locking-posts-desktop", "discussions-discussionsModeratorDesktopLocking" })
@Execute(asUser = User.DISCUSSIONS_MODERATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsModeratorOnDesktopCanLockPostOnPostDetailsPage() {
PostEntity.Data data = DiscussionsOperations.using(User.USER, driver).createPostWithUniqueData();
PostEntity postEntity = lockPost(data);
Assertion.assertTrue(postEntity.isLocked(), String.format(SHOULD_LOCK_MESSAGE, User.DISCUSSIONS_ADMINISTRATOR.name()));
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class GuidelinesTests method anonUserOnDesktopCanSeeGuidelinesHeroUnit.
@Test(groups = "discussions-anonUserOnDesktopCanSeeGuidelinesHeroUnit")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanSeeGuidelinesHeroUnit() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertTrue(guidelinesPage.isGuidelinesHeroUnitDisplayed());
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class GuidelinesTests method anonUserOnDesktopCanNotClickEditGuidelines.
@Test(groups = "discussions-anonUserOnDesktopCanNotSeeEditGuidelines")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanNotClickEditGuidelines() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertFalse(guidelinesPage.isEditButtonDisplayed());
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class GuidelinesTests method staffOnDesktopCanClickBackToDiscussions.
@Test(groups = "discussions-staffOnDesktopCanClickBackToDiscussions")
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void staffOnDesktopCanClickBackToDiscussions() {
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 GuidelinesTests method staffOnDesktopCanAddTextToGuidelines.
@Test(groups = "discussions-staffOnDesktopCanAddTextToGuidelines")
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void staffOnDesktopCanAddTextToGuidelines() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertTrue(guidelinesPage.canAddNewTextToGuidelines());
}
Aggregations