Search in sources :

Example 11 with AddPinComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject in project selenium-tests by Wikia.

the class PinMapTests method PinMapTests_001_VerifyPinModalContent.

@Test(enabled = false, groups = { "PinMapTests_001", "PinMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void PinMapTests_001_VerifyPinModalContent() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
    selectedMap.verifyMapOpened();
    AddPinComponentObject pinDialog = selectedMap.placePinInMap();
    pinDialog.verifyPinTitleFieldIsDisplayed();
    pinDialog.verifyAssociatedArticleFieldIsDisplayed();
    pinDialog.verifyAssociatedArticleImagePlaceholderIsDisplayed();
    pinDialog.verifyPinCategorySelectorIsDisplayed();
    pinDialog.verifyDescriptionFieldIsDisplayed();
    selectedMap = pinDialog.clickCancelButton();
}
Also used : InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) AddPinComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 12 with AddPinComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject in project selenium-tests by Wikia.

the class EmbedMapTests method EmbedMapTests_005_VerifyEmbedMapContributeModals.

@Test(enabled = false, groups = { "EmbedMapTests_005", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_005_VerifyEmbedMapContributeModals() {
    WikiBasePageObject base = new WikiBasePageObject();
    ArticlePageObject article = new ArticlePageObject();
    article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
    EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
    AddPinComponentObject addPinModal = embedMapDialog.placePinInMap();
    addPinModal.verifyPinTitleFieldIsDisplayed();
    addPinModal.verifyDescriptionFieldIsDisplayed();
    addPinModal.clickCancelButton();
    CreatePinTypesComponentObject pinTypesDialog = embedMapDialog.clickEditPinTypesButton();
    pinTypesDialog.verifyPinTypesDialog();
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) EmbedMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) CreatePinTypesComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject) AddPinComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

AddPinComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject)12 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)11 Test (org.testng.annotations.Test)11 Execute (com.wikia.webdriver.common.core.annotations.Execute)9 InteractiveMapPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject)9 InteractiveMapsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject)9 DontRun (com.wikia.webdriver.common.core.annotations.DontRun)6 EmbedMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject)2 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)2 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)1 CreatePinTypesComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject)1 Actions (org.openqa.selenium.interactions.Actions)1