Search in sources :

Example 1 with GuidelinesPage

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

the class GuidelinesTests method regularUserOnDesktopCanSeeGuidelinesHeroUnit.

@Test(groups = "discussions-regularUserOnDesktopCanSeeGuidelinesHeroUnit")
@Execute(asUser = User.USER_6)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void regularUserOnDesktopCanSeeGuidelinesHeroUnit() {
    GuidelinesPage guidelinesPage = new GuidelinesPage();
    guidelinesPage.open();
    Assertion.assertTrue(guidelinesPage.isGuidelinesHeroUnitDisplayed());
}
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 2 with GuidelinesPage

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

the class GuidelinesTests method discussionsModeratorOnDesktopCanClickEditGuidelines.

@Test(groups = "discussions-discussionsModeratorOnDesktopCanSeeEditGuidelines")
@Execute(asUser = User.DISCUSSIONS_MODERATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsModeratorOnDesktopCanClickEditGuidelines() {
    GuidelinesPage guidelinesPage = new GuidelinesPage();
    guidelinesPage.open();
    Assertion.assertTrue(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 3 with GuidelinesPage

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

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

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