Search in sources :

Example 1 with DiscussionsPage

use of com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage 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());
}
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 2 with DiscussionsPage

use of com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage 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());
}
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 3 with DiscussionsPage

use of com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage 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 4 with DiscussionsPage

use of com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage in project selenium-tests by Wikia.

the class GuidelinesTests method anonUserOnDesktopCanClickBackToDiscussions.

/**
   * ANONS ON DESKTOP SECTION
   */
@Test(groups = "discussions-anonUserOnDesktopCanClickBackToDiscussions")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanClickBackToDiscussions() {
    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)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)4 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)4 DiscussionsPage (com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage)4 GuidelinesPage (com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage)4 Test (org.testng.annotations.Test)4