use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_006_VerifyChangePinData.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(enabled = false, groups = { "PinMapTests_006", "PinMapTests", "InteractiveMaps", "PinMapTests_004" })
@Execute(asUser = User.USER)
public void PinMapTests_006_VerifyChangePinData() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickOnFilterBoxTitle();
AddPinComponentObject pinModal = selectedMap.placePinInMap();
String pinTitle = base.getTimeStamp();
String pinDescription = base.getTimeStamp() + base.getTimeStamp();
pinModal.typePinName(pinTitle);
pinModal.selectPinType();
pinModal.typePinDescription(pinDescription);
selectedMap = pinModal.clickSaveButton();
pinModal = selectedMap.clickOnEditPin();
pinModal.clearPinName();
pinModal.typePinName(base.getTimeStamp() + base.getTimeStamp());
pinModal.clearPinDescription();
pinModal.typePinDescription(base.getTimeStamp());
selectedMap = pinModal.clickSaveButton();
selectedMap.verifyPinDataWasChanged(pinTitle, pinDescription);
selectedMap.refreshPage();
selectedMap.clickOnPin(0);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PinTypeMapTests method PinTypeMapTests_002_VerifyClickingAddAnotherPinType.
@Test(groups = { "PinTypeMapTests_002", "PinTypeMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "QAART-690", comment = "functionality status is deprecated, " + "monitor the issue to find out resolution")
public void PinTypeMapTests_002_VerifyClickingAddAnotherPinType() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickEditPinTypesButton();
CreatePinTypesComponentObject pinTypesDialog = new CreatePinTypesComponentObject(driver);
pinTypesDialog.verifyPinTypesDialog();
pinTypesDialog.savePinTypesListState();
pinTypesDialog.clickAddAnotherPinType();
pinTypesDialog.verifyAddAnotherPinType();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject 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.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject 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.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject 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();
}
Aggregations