Search in sources :

Example 6 with InteractiveMapPageObject

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

the class MapFlowTests method MapFlowTests_001_CreateCustomMapNewImageUpload.

@Test(groups = { "MapFlowTests_001", "MapFlowTests", "InteractiveMaps" }, enabled = false)
@Execute(asUser = User.USER)
public void MapFlowTests_001_CreateCustomMapNewImageUpload() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    CreateAMapComponentObject map = specialMap.clickCreateAMap();
    CreateACustomMapComponentObject customMap = map.clickCustomMap();
    TemplateComponentObject template = customMap.selectFileToUpload(PageContent.FILE);
    template.verifyTemplateImagePreview();
    template.typeMapName(InteractiveMapsContent.MAP_NAME);
    InteractiveMapsContent.TEMPLATE_NAME = base.getTimeStamp();
    template.typeTemplateName(InteractiveMapsContent.TEMPLATE_NAME);
    CreatePinTypesComponentObject pinDialog = template.clickNext();
    pinDialog.typePinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, InteractiveMapsContent.PIN_TYPE_INDEX);
    InteractiveMapPageObject createdMap = pinDialog.clickSave();
    createdMap.verifyCreatedMapTitle(InteractiveMapsContent.MAP_NAME);
    createdMap.verifyMapOpened();
    createdMap.verifyCreatedPinTypesForNewMap();
    createdMap.verifyControlButtonsAreVisible();
}
Also used : InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) CreateACustomMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject) CreateAMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject) TemplateComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.TemplateComponentObject) CreatePinTypesComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 7 with InteractiveMapPageObject

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

the class NonSpecificMapTests method NonSpecificMapTests_001_ClickMapAndVerifyCorrectRedirect.

@Test(groups = { "NonSpecificMapTests_001", "NonSpecificMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
public void NonSpecificMapTests_001_ClickMapAndVerifyCorrectRedirect() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    String mapUrl = specialMap.getMapLink(InteractiveMapsContent.SELECTED_MAP_INDEX);
    String mapTitle = specialMap.getMapTitle(InteractiveMapsContent.SELECTED_MAP_INDEX);
    InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
    selectedMap.verifyMapOpened();
    selectedMap.verifyURL(mapUrl);
    selectedMap.verifyCreatedMapTitle(mapTitle);
}
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) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) DontRun(com.wikia.webdriver.common.core.annotations.DontRun)

Example 8 with InteractiveMapPageObject

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

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

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

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