Search in sources :

Example 1 with CuratedContentToolModal

use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CuratedContentToolModal 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 CuratedContentToolModal

use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CuratedContentToolModal 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)

Aggregations

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