use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_002_VerifySuggestionsAndAssociatedImage.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(enabled = false, groups = { "PinMapTests_002", "PinMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void PinMapTests_002_VerifySuggestionsAndAssociatedImage() {
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.typePinName(InteractiveMapsContent.PIN_NAME);
String placeholderSrc = pinDialog.getAssociatedArticleImageSrc();
pinDialog.typeAssociatedArticle(InteractiveMapsContent.ASSOCIATED_ARTICLE_NAME);
pinDialog.clickSuggestion(0);
pinDialog.verifyAssociatedImageIsVisible(placeholderSrc);
pinDialog.selectPinType();
selectedMap = pinDialog.clickSaveButton();
selectedMap.verifyPinPopupImageIsVisible();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject 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.InteractiveMapsPageObject 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.InteractiveMapsPageObject 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.InteractiveMapsPageObject 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();
}
Aggregations