Search in sources :

Example 1 with PalantirContent

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();
}
Also used : PalantirContent(com.wikia.webdriver.common.contentpatterns.PalantirContent) InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) PalantirComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Test(org.testng.annotations.Test)

Example 2 with PalantirContent

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();
}
Also used : PalantirContent(com.wikia.webdriver.common.contentpatterns.PalantirContent) InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) PalantirComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Test(org.testng.annotations.Test)

Example 3 with PalantirContent

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);
}
Also used : PalantirContent(com.wikia.webdriver.common.contentpatterns.PalantirContent) InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) PalantirComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Test(org.testng.annotations.Test)

Example 4 with PalantirContent

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;
}
Also used : PalantirContent(com.wikia.webdriver.common.contentpatterns.PalantirContent) Map(java.util.Map)

Example 5 with PalantirContent

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();
}
Also used : PalantirContent(com.wikia.webdriver.common.contentpatterns.PalantirContent) InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) PalantirComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Test(org.testng.annotations.Test)

Aggregations

PalantirContent (com.wikia.webdriver.common.contentpatterns.PalantirContent)7 PalantirComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject)6 InteractiveMapPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject)6 InteractiveMapsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject)6 Test (org.testng.annotations.Test)6 Map (java.util.Map)1