Search in sources :

Example 1 with PalantirComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject 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 PalantirComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject 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 PalantirComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject 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 PalantirComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject 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)

Example 5 with PalantirComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject in project selenium-tests by Wikia.

the class PalantirTests method PalantirTest_004_PalantirSetHugeZoomVerifyError.

@Test(groups = { "PalantirTest_004", "PalantirTests", "InteractiveMaps" })
public void PalantirTest_004_PalantirSetHugeZoomVerifyError() {
    InteractiveMapsPageObject specialMap = new InteractiveMapsPageObject();
    InteractiveMapPageObject selectedMap = specialMap.openMap(wikiURL, PalantirContent.PALANTIR_MAP);
    selectedMap.verifyMapOpened();
    PalantirComponentObject poi = new PalantirComponentObject();
    PalantirContent handle = poi.setAndVerifyPlayerPosition(-40, -10, 3000, true);
    poi.verifyWrongZoomLevel(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)6 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