Search in sources :

Example 11 with GuidelinesPage

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());
}
Also used : GuidelinesPage(com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 12 with GuidelinesPage

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());
}
Also used : DiscussionsPage(com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage) GuidelinesPage(com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 13 with GuidelinesPage

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());
}
Also used : GuidelinesPage(com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 14 with GuidelinesPage

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());
}
Also used : GuidelinesPage(com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 15 with GuidelinesPage

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());
}
Also used : GuidelinesPage(com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage) 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)17 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)17 GuidelinesPage (com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage)17 Test (org.testng.annotations.Test)17 DiscussionsPage (com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage)4 SkinHelper (com.wikia.webdriver.common.skin.SkinHelper)2 ArticlePage (com.wikia.webdriver.elements.mercury.pages.ArticlePage)1 SearchResultsPage (com.wikia.webdriver.elements.mercury.pages.SearchResultsPage)1 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)1