use of com.wikia.webdriver.common.contentpatterns.PalantirContent 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.common.contentpatterns.PalantirContent 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.common.contentpatterns.PalantirContent 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);
}
use of com.wikia.webdriver.common.contentpatterns.PalantirContent in project selenium-tests by Wikia.
the class PalantirComponentObject method getResponse.
private PalantirContent getResponse(Object response, String methodName) {
Map<String, String> map = (Map) response;
PalantirContent handle = new PalantirContent(String.valueOf(map.get(PalantirContent.PONTO_MSG_SUCCESS)), String.valueOf(map.get(PalantirContent.PONTO_MSG_RESPONSECODE)), map.get(PalantirContent.PONTO_MSG_MESSAGE));
PageObjectLogging.log(methodName, handle.getMessage(), true, driver);
return handle;
}
use of com.wikia.webdriver.common.contentpatterns.PalantirContent in project selenium-tests by Wikia.
the class PalantirTests method PalantirTest_003_PalantirSetAndRemovePlayerPosition.
@Test(groups = { "PalantirTest_003", "PalantirTests", "InteractiveMaps" })
public void PalantirTest_003_PalantirSetAndRemovePlayerPosition() {
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();
handle = poi.deletePlayerPosition();
poi.verifyPlayerPosDeleted(handle);
poi.verifyPoiNotAppearOnMap();
}
Aggregations