use of com.wikia.webdriver.common.core.annotations.DontRun in project selenium-tests by Wikia.
the class FilterBoxMapTests method FilterBoxMapTests_003_VerifyClickAllCategoriesUncheckCategories.
@Test(groups = { "FilterBoxMapTests_003", "FilterBoxMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "SUS-140", comment = "test is unstable, check locally or test manually")
public void FilterBoxMapTests_003_VerifyClickAllCategoriesUncheckCategories() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickOnAllPinTypes();
selectedMap.verifyAllPinTypesIsUncheck();
selectedMap.verifyPinTypesAreUncheck();
}
use of com.wikia.webdriver.common.core.annotations.DontRun in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_003_CreateRealMap.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(groups = { "MapFlowTests_003", "MapFlowTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "MAIN-5732", comment = "Not possible to test manually in preview environment")
public void MapFlowTests_003_CreateRealMap() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
CreateRealMapComponentObject realMap = map.clickRealMap();
realMap.verifyRealMapPreviewImage();
realMap.typeMapName(InteractiveMapsContent.MAP_NAME);
CreatePinTypesComponentObject pinDialog = realMap.clickNext();
pinDialog.typePinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, InteractiveMapsContent.PIN_TYPE_INDEX);
InteractiveMapPageObject createdMap = pinDialog.clickSave();
createdMap.verifyMapOpened();
createdMap.verifyControlButtonsAreVisible();
}
use of com.wikia.webdriver.common.core.annotations.DontRun 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.common.core.annotations.DontRun 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.common.core.annotations.DontRun 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);
}
Aggregations