use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject in project selenium-tests by Wikia.
the class DabbletComPageObject method verifyMapEmbed.
public void verifyMapEmbed() {
wait.forElementVisible(resultBox);
driver.switchTo().frame(resultBox);
driver.switchTo().frame(0);
EmbedMapComponentObject embedMap = new EmbedMapComponentObject(driver);
embedMap.verifyBranFooterVisible();
driver.switchTo().defaultContent();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject in project selenium-tests by Wikia.
the class BlockedUserMapTests method BlockedUserMapTests_006_VerifyUserCannotAddPinOnEmbeddedMap.
@Test(groups = { "BlockedUserMapTests_006", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_006_VerifyUserCannotAddPinOnEmbeddedMap() {
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();
AddPinComponentObject addPinModal = embedMapDialog.placePinInMap();
addPinModal.typePinName(InteractiveMapsContent.PIN_NAME);
addPinModal.typePinDescription(InteractiveMapsContent.PIN_DESCRIPTION);
addPinModal.selectPinType();
addPinModal.clickSaveButton();
addPinModal.verifyErrorExists();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_002_VerifyEmbedMapElements.
@Test(groups = { "EmbedMapTests_002", "EmbedMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
public void EmbedMapTests_002_VerifyEmbedMapElements() {
ArticlePageObject article = new ArticlePageObject();
article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
embedMapDialog.verifyEmbedMapModalOpened();
embedMapDialog.verifyMapTitlePresented();
embedMapDialog.verifyCloseButtonPresented();
embedMapDialog.verifyMapElementsPresented();
embedMapDialog.verifyBrandFooterNotVisible();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_006_VerifyEmbeddedMapAddPinType.
@Test(enabled = false, groups = { "EmbedMapTests_006", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_006_VerifyEmbeddedMapAddPinType() {
WikiBasePageObject base = new WikiBasePageObject();
ArticlePageObject article = new ArticlePageObject();
article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
CreatePinTypesComponentObject pinTypesDialog = embedMapDialog.clickEditPinTypesButton();
pinTypesDialog.verifyPinTypesDialog();
pinTypesDialog.deletePinTypes();
pinTypesDialog.typeManyPinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, 4);
pinTypesDialog.clickSave();
embedMapDialog.verifyPinTypeExists(InteractiveMapsContent.PIN_TYPE_NAME);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject 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();
}
Aggregations