use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_005_VerifyDeletePin.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(enabled = false, groups = { "PinMapTests_005", "PinMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void PinMapTests_005_VerifyDeletePin() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickOnFilterBoxTitle();
selectedMap.clickOnPin(0);
String pinName = selectedMap.getOpenPinName();
selectedMap.verifyPopUpVisible();
AddPinComponentObject editPinModal = selectedMap.clickOnEditPin();
selectedMap = editPinModal.clickDeletePin();
selectedMap.verifyPinNotExists(pinName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_007_VerifyValidExternalUrlCanBeAdded.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(enabled = false, groups = { "PinMapTests_007", "PinMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void PinMapTests_007_VerifyValidExternalUrlCanBeAdded() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMaps.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
AddPinComponentObject addPinModal = selectedMap.placePinInMap();
addPinModal.typePinName(InteractiveMapsContent.PIN_NAME);
addPinModal.typeAssociatedArticle(InteractiveMapsContent.EXTERNAL_LINK);
addPinModal.selectPinType();
selectedMap = addPinModal.clickSaveButton();
selectedMap.verifyPinTitleLink();
selectedMap.clickOpenPinTitle();
selectedMap.verifyUrlInNewWindow(InteractiveMapsContent.EXTERNAL_LINK);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_004_VerifyPopUpAfterClickPin.
@RelatedIssue(issueID = " ", comment = "This maps test should not fail")
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(groups = { "PinMapTests_004", "PinMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void PinMapTests_004_VerifyPopUpAfterClickPin() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickOnPin(0);
selectedMap.verifyPopUpVisible();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject 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();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_001_EmbedMapInWikiaPage.
@Test(enabled = false, groups = { "EmbedMapTests_001", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_001_EmbedMapInWikiaPage() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
String wikiEmbedCode = selectedMap.getEmbedMapWikiCode();
String mapID = selectedMap.getEmbedMapID();
WikiArticleEditMode editMode = selectedMap.openEmbedMapPageEdit(wikiURL);
editMode.clickSourceButton();
editMode.clearSource();
editMode.verifySourceEditorContentIsEmpty();
editMode.typeContentInSourceMode(wikiEmbedCode);
editMode.clickOnPublish();
editMode.verifyEmbededMap(mapID);
}
Aggregations