Search in sources :

Example 1 with InteractiveMapPageObject

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

the class PinTypeMapTests method PinTypeMapTests_001_VerifyImageValidationInPinTypeModal.

@Test(groups = { "PinTypeMapTests_001", "PinTypeMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "QAART-690", comment = "functionality status is deprecated, " + "monitor the issue to find out resolution")
public void PinTypeMapTests_001_VerifyImageValidationInPinTypeModal() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
    selectedMap.verifyMapOpened();
    selectedMap.clickEditPinTypesButton();
    CreatePinTypesComponentObject pinTypeModal = new CreatePinTypesComponentObject(driver);
    pinTypeModal.verifyPinTypesDialog();
    pinTypeModal.selectFileToUpload(PageContent.SMALLFILE, "Small image");
    pinTypeModal.verifyErrorExists();
    pinTypeModal.selectFileToUpload(PageContent.BROKENEXTENSIONFILE, "Image with wrong extension");
    pinTypeModal.verifyErrorExists();
}
Also used : InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) 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) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue) DontRun(com.wikia.webdriver.common.core.annotations.DontRun)

Example 2 with InteractiveMapPageObject

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

the class BlockedUserMapTests method BlockedUserMapTests_002_VerifyUserCannotAddPin.

@RelatedIssue(issueID = "", comment = "Functionality is being depracated NO need to test manually")
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(groups = { "BlockedUserMapTests_002", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_002_VerifyUserCannotAddPin() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
    InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
    InteractiveMapPageObject selectedMap = specialMaps.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
    AddPinComponentObject addPinModal = selectedMap.placePinInMap();
    addPinModal.typePinName(InteractiveMapsContent.PIN_NAME);
    addPinModal.typePinDescription(InteractiveMapsContent.PIN_DESCRIPTION);
    addPinModal.selectPinType();
    addPinModal.clickSaveButton();
    addPinModal.verifyErrorExists();
}
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) AddPinComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue) DontRun(com.wikia.webdriver.common.core.annotations.DontRun)

Example 3 with InteractiveMapPageObject

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

the class DeleteAndRestoreMapTests method DeleteAndRestoreMapTests_002_DeleteMapByNotOwner.

@Test(groups = { "DeleteAndRestoreMapTests_002", "DeleteAndRestoreMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER_2)
public void DeleteAndRestoreMapTests_002_DeleteMapByNotOwner() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapPageObject selectedMap = base.openInteractiveMapById(wikiURL, InteractiveMapsContent.MAP_TO_DELETE_AND_RESTORE[1]);
    DeleteAMapComponentObject deleteMapModal = selectedMap.deleteMap();
    deleteMapModal.clickDeleteMap();
    Assertion.assertEquals(deleteMapModal.getDeleteMapError(), InteractiveMapsContent.MAP_DELETE_ERROR);
}
Also used : DeleteAMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.DeleteAMapComponentObject) InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 4 with InteractiveMapPageObject

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

the class EmbedMapTests method EmbedMapTests_004_VerifyEmbedMapOutsideWikia.

@Test(enabled = false, groups = { "EmbedMapTests_004", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_004_VerifyEmbedMapOutsideWikia() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
    selectedMap.verifyMapOpened();
    selectedMap.clickEmbedMapCodeButton();
    selectedMap.verifyEmbedMapDialog();
    selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.SMALL);
    String mapCode = selectedMap.getEmbedMapCode();
    DabbletComPageObject outPage = new DabbletComPageObject(driver);
    outPage.openOutPage();
    outPage.typeHtmlCode(mapCode);
    outPage.verifyMapEmbed();
}
Also used : InteractiveMapPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) DabbletComPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.DabbletComPageObject) 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 InteractiveMapPageObject

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

the class EmbedMapTests method EmbedMapTests_003_VerifyEmbedMapCodeButton.

@Test(enabled = false, groups = { "EmbedMapTests_003", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_003_VerifyEmbedMapCodeButton() {
    WikiBasePageObject base = new WikiBasePageObject();
    InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
    InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
    selectedMap.verifyMapOpened();
    selectedMap.clickEmbedMapCodeButton();
    selectedMap.verifyEmbedMapDialog();
    selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.SMALL);
    selectedMap.verifyEmbedMapCode(InteractiveMapPageObject.embedMapDialogButtons.SMALL);
    selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.MEDIUM);
    selectedMap.verifyEmbedMapCode(InteractiveMapPageObject.embedMapDialogButtons.MEDIUM);
    selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.LARGE);
    selectedMap.verifyEmbedMapCode(InteractiveMapPageObject.embedMapDialogButtons.LARGE);
}
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)

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