use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage 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.elements.mercury.pages.discussions.GuidelinesPage 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.elements.mercury.pages.discussions.GuidelinesPage 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());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage in project selenium-tests by Wikia.
the class GuidelinesTests method staffOnDesktopCanClickEditGuidelines.
/**
* LOGGED IN USERS ON DESKTOP SECTION
* User_6 was chosen because, I take the last available user form the list of users
*/
@Test(groups = "discussions-staffUserOnDesktopCanSeeEditGuidelines")
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void staffOnDesktopCanClickEditGuidelines() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertTrue(guidelinesPage.isModalGuidelinesDisplayed());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage in project selenium-tests by Wikia.
the class GuidelinesTests method discussionsModeratorOnDesktopCanAddTextToGuidelines.
@Test(groups = "discussions-discussionsModeratorOnDesktopCanAddTextToGuidelines")
@Execute(asUser = User.DISCUSSIONS_MODERATOR)
@InBrowser(browser = Browser.CHROME, browserSize = DESKTOP_RESOLUTION)
public void discussionsModeratorOnDesktopCanAddTextToGuidelines() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertTrue(guidelinesPage.canAddNewTextToGuidelines());
}
Aggregations