Search in sources :

Example 6 with PalantirContent

use of com.wikia.webdriver.common.contentpatterns.PalantirContent 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)

Example 7 with PalantirContent

use of com.wikia.webdriver.common.contentpatterns.PalantirContent in project selenium-tests by Wikia.

the class PalantirTests method PalantirTest_002_SetPlayerPositionOutOfMap.

@Test(groups = { "PalantirTest_002", "PalantirTests", "InteractiveMaps" })
public void PalantirTest_002_SetPlayerPositionOutOfMap() {
    InteractiveMapsPageObject specialMap = new InteractiveMapsPageObject();
    InteractiveMapPageObject selectedMap = specialMap.openMap(wikiURL, PalantirContent.PALANTIR_MAP);
    selectedMap.verifyMapOpened();
    PalantirComponentObject poi = new PalantirComponentObject();
    PalantirContent handle = poi.setAndVerifyPlayerPosition(9300, 15000, 3, true);
    poi.verifyWrongPlayerPos(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