use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class LockingPostTests method userOnDesktopCanAddReplyUnderUnlockedPostOnPostDetailsPage.
@Test(groups = { "discussions-locking-posts-desktop", "discussions-userDesktopLocking" })
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanAddReplyUnderUnlockedPostOnPostDetailsPage() {
PostEntity.Data data = DiscussionsOperations.using(User.USER, driver).createPostWithUniqueData();
DiscussionsOperations.using(User.DISCUSSIONS_MODERATOR, driver).lockPost(data).unlockPost(data);
PostDetailsPage page = new PostDetailsPage().open(data.getId());
final String text = addReplyOnDesktop(page);
boolean actual = isReplyNotPresent(page, text);
final String message = String.format(SHOULD_ADD_REPLY_MESSAGE, User.USER.name(), User.DISCUSSIONS_MODERATOR.name());
Assertion.assertFalse(actual, message);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class GuidelinesTests method regularUserOnDesktopCanClickBackToDiscussions.
@Test(groups = "discussions-regularUserOnDesktopCanClickBackToDiscussions")
@Execute(asUser = User.USER_6)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void regularUserOnDesktopCanClickBackToDiscussions() {
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 staffOnDesktopCanSeeGuidelinesHeroUnit.
@Test(groups = "discussions-staffOnDesktopCanSeeGuidelinesHeroUnit")
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void staffOnDesktopCanSeeGuidelinesHeroUnit() {
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 discussionsModeratorOnDesktopCanSeeGuidelinesHeroUnit.
@Test(groups = "discussions-discussionsModeratorOnDesktopCanSeeGuidelinesHeroUnit")
@Execute(asUser = User.DISCUSSIONS_MODERATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsModeratorOnDesktopCanSeeGuidelinesHeroUnit() {
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 regularUserOnDesktopCanNotClickEditGuidelines.
@Test(groups = "discussions-regularUserOnDesktopCanNotSeeEditGuidelines")
@Execute(asUser = User.USER_6)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void regularUserOnDesktopCanNotClickEditGuidelines() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertFalse(guidelinesPage.isEditButtonDisplayed());
}
Aggregations