use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_001_CreateCustomMapNewImageUpload.
@Test(groups = { "MapFlowTests_001", "MapFlowTests", "InteractiveMaps" }, enabled = false)
@Execute(asUser = User.USER)
public void MapFlowTests_001_CreateCustomMapNewImageUpload() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMap = map.clickCustomMap();
TemplateComponentObject template = customMap.selectFileToUpload(PageContent.FILE);
template.verifyTemplateImagePreview();
template.typeMapName(InteractiveMapsContent.MAP_NAME);
InteractiveMapsContent.TEMPLATE_NAME = base.getTimeStamp();
template.typeTemplateName(InteractiveMapsContent.TEMPLATE_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.componentobject.interactivemaps.CreateACustomMapComponentObject in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_005_VerifyCloseButtonsInCreationMapFlow.
@Test(groups = { "MapFlowTests_005", "MapFlowTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void MapFlowTests_005_VerifyCloseButtonsInCreationMapFlow() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject createMapModal = specialMap.clickCreateAMap();
specialMap = createMapModal.clickCloseButton();
specialMap.verifyCreateMapModalNotExists();
createMapModal = specialMap.clickCreateAMap();
CreateRealMapComponentObject realMapModal = createMapModal.clickRealMap();
specialMap = realMapModal.clickClose();
specialMap.verifyCreateMapModalNotExists();
createMapModal = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMapModal = createMapModal.clickCustomMap();
customMapModal.clickCloseButton();
specialMap.verifyCreateMapModalNotExists();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject in project selenium-tests by Wikia.
the class NonSpecificMapTests method NonSpecificMapTests_003_VerifyTemplateSearch.
@Test(enabled = false, groups = { "NonSpecificMapTests_003", "NonSpecificMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void NonSpecificMapTests_003_VerifyTemplateSearch() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject createMapDialog = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMapDialog = createMapDialog.clickCustomMap();
customMapDialog.typeSearchTile(InteractiveMapsContent.TEMPLATE_NAME_TO_SEARCH_SHOULD_NOT_BE_FOUND);
customMapDialog.verifyErrorExists();
customMapDialog.clearSearchTitle();
customMapDialog.typeSearchTile(InteractiveMapsContent.TEMPLATE_NAME_TO_SEARCH_SHOULD_BE_FOUND);
customMapDialog.verifyTemplateListElementVisible(0);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject 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.componentobject.interactivemaps.CreateACustomMapComponentObject in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_004_VerifyBackButtonWorksCorrectly.
@Test(groups = { "MapFlowTests_004", "MapFlowTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void MapFlowTests_004_VerifyBackButtonWorksCorrectly() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMap = map.clickCustomMap();
TemplateComponentObject template = customMap.selectTemplate(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
template.verifyTemplateImagePreview();
customMap = template.clickBack();
customMap.verifyTemplateListElementVisible(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
map = customMap.clickBack();
map.verifyRealMapAndCustomMapButtons();
CreateRealMapComponentObject realMap = map.clickRealMap();
realMap.verifyRealMapPreviewImage();
map = realMap.clickBack();
map.verifyRealMapAndCustomMapButtons();
}
Aggregations