Search in sources :

Example 6 with EmbedMapComponentObject

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

the class BlockedUserMapTests method BlockedUserMapTests_005_VerifyUserCannotEditPinTypesOnEmbeddedMap.

@Test(groups = { "BlockedUserMapTests_005", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_005_VerifyUserCannotEditPinTypesOnEmbeddedMap() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
    ArticlePageObject article = new ArticlePageObject();
    article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
    EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
    CreatePinTypesComponentObject pinTypesDialog = embedMapDialog.clickEditPinTypesButton();
    pinTypesDialog.verifyPinTypesDialog();
    pinTypesDialog.typeManyPinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, 4);
    pinTypesDialog.clickSave();
    pinTypesDialog.verifyErrorExists();
}
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) Test(org.testng.annotations.Test)

Aggregations

EmbedMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject)6 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)5 Test (org.testng.annotations.Test)5 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)4 CreatePinTypesComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject)3 Execute (com.wikia.webdriver.common.core.annotations.Execute)2 AddPinComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject)2 DontRun (com.wikia.webdriver.common.core.annotations.DontRun)1