Search in sources :

Example 11 with InteractiveMapsPageObject

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

the class NonSpecificMapTests method NonSpecificMapTests_002_VerifyLoginModalWhenAnon.

@Test(enabled = false, groups = { "NonSpecificMapTests_002", "NonSpecificMapTests", "InteractiveMaps" })
public void NonSpecificMapTests_002_VerifyLoginModalWhenAnon() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    CreateAMapComponentObject map = specialMap.clickCreateAMap();
    map.verifyLoginModal();
}
Also used : WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) CreateAMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Test(org.testng.annotations.Test)

Example 12 with InteractiveMapsPageObject

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

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

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

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

the class FilterBoxMapTests method FilterBoxMapTests_004_VerifyClickAllCategoriesCheckAllPinTypes.

@Test(groups = { "FilterBoxMapTests_004", "FilterBoxMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "SUS-140", comment = "test is unstable, check locally or test manually")
public void FilterBoxMapTests_004_VerifyClickAllCategoriesCheckAllPinTypes() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
    selectedMap.verifyMapOpened();
    selectedMap.clickOnSingleEnabledCategory();
    selectedMap.verifyAllPinTypesIsUncheck();
    selectedMap.clickOnAllPinTypes();
    selectedMap.verifyAllPinTypesIsCheck();
    selectedMap.verifyPinTypesAreCheck();
}
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) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue) DontRun(com.wikia.webdriver.common.core.annotations.DontRun)

Aggregations

InteractiveMapsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject)45 Test (org.testng.annotations.Test)45 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)38 InteractiveMapPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject)34 Execute (com.wikia.webdriver.common.core.annotations.Execute)30 DontRun (com.wikia.webdriver.common.core.annotations.DontRun)22 CreateAMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject)13 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)12 AddPinComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject)9 CreatePinTypesComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject)8 CreateACustomMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject)7 PalantirContent (com.wikia.webdriver.common.contentpatterns.PalantirContent)6 PalantirComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.PalantirComponentObject)6 CreateRealMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject)5 TemplateComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.TemplateComponentObject)5 DeleteAMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.DeleteAMapComponentObject)1 VisualEditorAddMapDialog (com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorAddMapDialog)1 DabbletComPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.DabbletComPageObject)1 VisualEditorPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject)1 WikiArticleEditMode (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.editmode.WikiArticleEditMode)1