Search in sources :

Example 1 with MainPage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage in project selenium-tests by Wikia.

the class CuratedContentModal method CuratedContentModal_002_MercuryNavBarShouldNotBeVisible.

@Execute(asUser = User.STAFF)
@Test(groups = { "CuratedContentModal_002", "CuratedContent" })
public void CuratedContentModal_002_MercuryNavBarShouldNotBeVisible() {
    MainPage main = new MainPage(driver).open();
    CuratedContentToolModal modal = main.clickCuratedContentToolButton();
    Assertion.assertTrue(modal.isModalVisible());
    Assertion.assertFalse(new TopBar(driver).isNavigationBarVisible());
}
Also used : CuratedContentToolModal(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CuratedContentToolModal) TopBar(com.wikia.webdriver.elements.mercury.components.TopBar) MainPage(com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 2 with MainPage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage in project selenium-tests by Wikia.

the class CuratedContentModal method CuratedContentModal_001_modalVisible.

@Test(groups = { "CuratedContentModal_001", "CuratedContent" })
@Execute(asUser = User.STAFF)
public void CuratedContentModal_001_modalVisible() {
    MainPage main = new MainPage(driver).open();
    CuratedContentToolModal modal = main.clickCuratedContentToolButton();
    Assertion.assertTrue(modal.isModalVisible());
}
Also used : CuratedContentToolModal(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CuratedContentToolModal) MainPage(com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 3 with MainPage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage in project selenium-tests by Wikia.

the class VideosModuleTests method VideosModuleTest_002.

/**
   * Checks if the Videos Module does not show up where it shouldn't. This checks the main page and
   * Special:WikiActivity, however the Videos Module shouldn't show up anywhere besides Article or
   * File pages. This is just a smoke test to make sure nothing is seriously wrong.
   */
@Test(groups = { "VideosModule", "VideosModuleTest_002", "Media" })
public void VideosModuleTest_002() {
    VideosModuleComponentObject videosModule = new VideosModuleComponentObject(driver);
    new MainPage(driver).open();
    videosModule.verifyVideosModuleNotShowing();
    new SpecialWikiActivityPageObject(driver).open();
    videosModule.verifyVideosModuleNotShowing();
}
Also used : SpecialWikiActivityPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject) VideosModuleComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject) MainPage(com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage) Test(org.testng.annotations.Test)

Aggregations

MainPage (com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage)3 Test (org.testng.annotations.Test)3 Execute (com.wikia.webdriver.common.core.annotations.Execute)2 CuratedContentToolModal (com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CuratedContentToolModal)2 TopBar (com.wikia.webdriver.elements.mercury.components.TopBar)1 VideosModuleComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject)1 SpecialWikiActivityPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject)1