use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject 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.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class NonSpecificMapTests method NonSpecificMapTests_001_ClickMapAndVerifyCorrectRedirect.
@Test(groups = { "NonSpecificMapTests_001", "NonSpecificMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
public void NonSpecificMapTests_001_ClickMapAndVerifyCorrectRedirect() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
String mapUrl = specialMap.getMapLink(InteractiveMapsContent.SELECTED_MAP_INDEX);
String mapTitle = specialMap.getMapTitle(InteractiveMapsContent.SELECTED_MAP_INDEX);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.verifyURL(mapUrl);
selectedMap.verifyCreatedMapTitle(mapTitle);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PalantirTests method PalantirTest_001_PalantirSetPlayerCorrectPosition.
@Test(groups = { "PalantirTests_001", "PalantirTests", "InteractiveMaps" })
public void PalantirTest_001_PalantirSetPlayerCorrectPosition() {
InteractiveMapsPageObject specialMap = new InteractiveMapsPageObject();
InteractiveMapPageObject selectedMap = specialMap.openMap(wikiURL, PalantirContent.PALANTIR_MAP);
selectedMap.verifyMapOpened();
PalantirComponentObject poi = new PalantirComponentObject();
PalantirContent handle = poi.setAndVerifyPlayerPosition(-40, -10, 3, true);
poi.verifyCorrectPlayerPos(handle);
poi.verifyPoiAppearOnMap();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PalantirTests method PalantirTest_006_PalantirSetDecimalZoom.
@Test(groups = { "PalantirTest_006", "PalantirTests", "InteractiveMaps" })
public void PalantirTest_006_PalantirSetDecimalZoom() {
InteractiveMapsPageObject specialMap = new InteractiveMapsPageObject();
InteractiveMapPageObject selectedMap = specialMap.openMap(wikiURL, PalantirContent.PALANTIR_MAP);
selectedMap.verifyMapOpened();
PalantirComponentObject poi = new PalantirComponentObject();
PalantirContent handle = poi.setAndVerifyPlayerPosition(-40, -10, 3.4, true);
poi.verifyDecimalZoomLevel(handle);
poi.verifyPoiNotAppearOnMap();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.
the class PalantirTests method PalantirTest_005_PalantirUpdateMapPosition.
@Test(groups = { "PalantirTest_005", "PalantirTests", "InteractiveMaps" })
public void PalantirTest_005_PalantirUpdateMapPosition() {
InteractiveMapsPageObject specialMap = new InteractiveMapsPageObject();
InteractiveMapPageObject selectedMap = specialMap.openMap(wikiURL, PalantirContent.PALANTIR_MAP);
selectedMap.verifyMapOpened();
PalantirComponentObject poi = new PalantirComponentObject();
PalantirContent handle = poi.setAndVerifyPlayerPosition(-40, -10, 3, true);
poi.verifyCorrectPlayerPos(handle);
handle = poi.updateMapPosition(-90, -10, 3);
poi.verifyMapPositionUpdated(handle);
}
Aggregations