use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class FilterBoxMapTests method FilterBoxMapTests_004_VerifyClickAllCategoriesCheckAllPinTypes.
@Test(groups = { "FilterBoxMapTests_004", "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_004_VerifyClickAllCategoriesCheckAllPinTypes() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickOnSingleEnabledCategory();
selectedMap.verifyAllPinTypesIsUncheck();
selectedMap.clickOnAllPinTypes();
selectedMap.verifyAllPinTypesIsCheck();
selectedMap.verifyPinTypesAreCheck();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_002_CreateCustomMapWithExistingTemplate.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(groups = { "MapFlowTests_002", "MapFlowTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "MAIN-5732", comment = "Not possible to test manually in preview environment")
public void MapFlowTests_002_CreateCustomMapWithExistingTemplate() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMap = map.clickCustomMap();
String selectedImageName = customMap.getSelectedTemplateImageName(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
TemplateComponentObject template = customMap.selectTemplate(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
template.verifyTemplateImage(selectedImageName);
template.typeMapName(InteractiveMapsContent.MAP_NAME);
CreatePinTypesComponentObject pinDialog = template.clickNext();
pinDialog.typePinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, InteractiveMapsContent.PIN_TYPE_INDEX);
InteractiveMapPageObject createdMap = pinDialog.clickSave();
createdMap.verifyCreatedMapTitle(InteractiveMapsContent.MAP_NAME);
createdMap.verifyMapOpened();
createdMap.verifyCreatedPinTypesForNewMap();
createdMap.verifyControlButtonsAreVisible();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_003_VerifyPinCreationErrors.
@Test(enabled = false, groups = { "PinMapTests_003", "PinMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void PinMapTests_003_VerifyPinCreationErrors() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
AddPinComponentObject addPinModal = selectedMap.placePinInMap();
addPinModal.clickSaveButton();
addPinModal.verifyErrorExists();
addPinModal.typePinName(InteractiveMapsContent.PIN_DESCRIPTION);
addPinModal.clickSaveButton();
addPinModal.verifyErrorExists();
addPinModal.selectPinType();
addPinModal.clickSaveButton();
addPinModal.verifyErrorExists();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_009_VerifyArticlePlaceholder.
@Test(enabled = false, groups = { "PinMapTests_009", "PinMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void PinMapTests_009_VerifyArticlePlaceholder() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMaps.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
AddPinComponentObject addPinModal = selectedMap.placePinInMap();
addPinModal.verifyAssociatedArticlePlaceholder();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_008_VerifyErrorMessageWhenAssociatedArticleNotExist.
@Test(enabled = false, groups = { "PinMapTests_008", "PinMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
public void PinMapTests_008_VerifyErrorMessageWhenAssociatedArticleNotExist() {
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.ARTICLE_WHICH_DOES_NOT_EXIST);
addPinModal.selectPinType();
addPinModal.clickSaveButton();
addPinModal.verifyErrorContent(InteractiveMapsContent.ARTICLE_NOT_EXIST_ERROR.replace("%articlename%", InteractiveMapsContent.ARTICLE_WHICH_DOES_NOT_EXIST));
}
Aggregations