Search in sources :

Example 1 with CreateAMapComponentObject

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

the class BlockedUserMapTests method BlockedUserMapTests_003_VerifyUserCannotCreateRealMap.

@Test(groups = { "BlockedUserMapTests_003", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_003_VerifyUserCannotCreateRealMap() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
    InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
    CreateAMapComponentObject createMap = specialMaps.clickCreateAMap();
    CreateRealMapComponentObject realMap = createMap.clickRealMap();
    realMap.typeMapName(InteractiveMapsContent.MAP_NAME);
    realMap.clickNext();
    realMap.verifyErrorExists();
}
Also used : CreateRealMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject) 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 2 with CreateAMapComponentObject

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

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

the class MapFlowTests method MapFlowTests_005_VerifyCloseButtonsInCreationMapFlow.

@Test(groups = { "MapFlowTests_005", "MapFlowTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void MapFlowTests_005_VerifyCloseButtonsInCreationMapFlow() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    CreateAMapComponentObject createMapModal = specialMap.clickCreateAMap();
    specialMap = createMapModal.clickCloseButton();
    specialMap.verifyCreateMapModalNotExists();
    createMapModal = specialMap.clickCreateAMap();
    CreateRealMapComponentObject realMapModal = createMapModal.clickRealMap();
    specialMap = realMapModal.clickClose();
    specialMap.verifyCreateMapModalNotExists();
    createMapModal = specialMap.clickCreateAMap();
    CreateACustomMapComponentObject customMapModal = createMapModal.clickCustomMap();
    customMapModal.clickCloseButton();
    specialMap.verifyCreateMapModalNotExists();
}
Also used : CreateRealMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) CreateACustomMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject) CreateAMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 4 with CreateAMapComponentObject

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

the class NonSpecificMapTests method NonSpecificMapTests_009_VerifyCreateMapButtonUnderContribution.

@Test(enabled = false, groups = { "NonSpecificMapTests_009", "NonSpecificMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void NonSpecificMapTests_009_VerifyCreateMapButtonUnderContribution() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
    CreateAMapComponentObject createMap = specialMaps.clickCreateAMapUnderContributeButton();
    createMap.verifyRealMapAndCustomMapButtons();
}
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) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 5 with CreateAMapComponentObject

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

the class NonSpecificMapTests method NonSpecificMapTests_003_VerifyTemplateSearch.

@Test(enabled = false, groups = { "NonSpecificMapTests_003", "NonSpecificMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void NonSpecificMapTests_003_VerifyTemplateSearch() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    CreateAMapComponentObject createMapDialog = specialMap.clickCreateAMap();
    CreateACustomMapComponentObject customMapDialog = createMapDialog.clickCustomMap();
    customMapDialog.typeSearchTile(InteractiveMapsContent.TEMPLATE_NAME_TO_SEARCH_SHOULD_NOT_BE_FOUND);
    customMapDialog.verifyErrorExists();
    customMapDialog.clearSearchTitle();
    customMapDialog.typeSearchTile(InteractiveMapsContent.TEMPLATE_NAME_TO_SEARCH_SHOULD_BE_FOUND);
    customMapDialog.verifyTemplateListElementVisible(0);
}
Also used : WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) CreateACustomMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject) CreateAMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject) InteractiveMapsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

CreateAMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject)13 InteractiveMapsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject)13 Test (org.testng.annotations.Test)13 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)12 Execute (com.wikia.webdriver.common.core.annotations.Execute)10 CreateACustomMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject)7 CreatePinTypesComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject)5 CreateRealMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject)5 TemplateComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.TemplateComponentObject)5 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)4 InteractiveMapPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject)3 DontRun (com.wikia.webdriver.common.core.annotations.DontRun)2 DeleteAMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.DeleteAMapComponentObject)1 VisualEditorAddMapDialog (com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorAddMapDialog)1 VisualEditorPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject)1