Search in sources :

Example 31 with InteractiveMapPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject 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 32 with InteractiveMapPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject 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 33 with InteractiveMapPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject 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)

Example 34 with InteractiveMapPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.

the class NonSpecificMapTests method NonSpecificMapTests_011_VerifyEscapedFragmentPageContent.

@Test(groups = { "NonSpecificMapTests_011", "NonSpecificMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
public void NonSpecificMapTests_011_VerifyEscapedFragmentPageContent() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    InteractiveMapPageObject selectedMap = specialMap.openEscapedFragmentMap(wikiURL, InteractiveMapsContent.ESCAPED_FRAGMENT_MAP_ID);
    selectedMap.verifyPoiCategoryTitle();
    selectedMap.verifyPoiPointTitle();
    selectedMap.verifyPoiPointDescription();
}
Also used : InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Test(org.testng.annotations.Test) DontRun(com.wikia.webdriver.common.core.annotations.DontRun)

Example 35 with InteractiveMapPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject in project selenium-tests by Wikia.

the class NonSpecificMapTests method NonSpecificMapTests_008_VerifyMapIsDisplayedForAnons.

@Test(groups = { "NonSpecificMapTests_008", "NonSpecificMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
public void NonSpecificMapTests_008_VerifyMapIsDisplayedForAnons() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
    selectedMap.verifyMapOpened();
}
Also used : InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Test(org.testng.annotations.Test) DontRun(com.wikia.webdriver.common.core.annotations.DontRun)

Aggregations

InteractiveMapPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject)36 Test (org.testng.annotations.Test)36 InteractiveMapsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject)34 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)30 Execute (com.wikia.webdriver.common.core.annotations.Execute)23 DontRun (com.wikia.webdriver.common.core.annotations.DontRun)22 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)11 AddPinComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject)9 PalantirContent (com.wikia.webdriver.common.contentpatterns.PalantirContent)6 CreatePinTypesComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject)6 PalantirComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject)6 CreateAMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject)3 CreateACustomMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject)2 TemplateComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.TemplateComponentObject)2 NetworkTrafficDump (com.wikia.webdriver.common.core.annotations.NetworkTrafficDump)1 CreateRealMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject)1 DeleteAMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.DeleteAMapComponentObject)1 DabbletComPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.DabbletComPageObject)1 WikiArticleEditMode (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.editmode.WikiArticleEditMode)1