Search in sources :

Example 1 with DontRun

use of com.wikia.webdriver.common.core.annotations.DontRun 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 DontRun

use of com.wikia.webdriver.common.core.annotations.DontRun 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 DontRun

use of com.wikia.webdriver.common.core.annotations.DontRun in project selenium-tests by Wikia.

the class EmbedMapTests method EmbedMapTests_002_VerifyEmbedMapElements.

@Test(groups = { "EmbedMapTests_002", "EmbedMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
public void EmbedMapTests_002_VerifyEmbedMapElements() {
    ArticlePageObject article = new ArticlePageObject();
    article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
    EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
    embedMapDialog.verifyEmbedMapModalOpened();
    embedMapDialog.verifyMapTitlePresented();
    embedMapDialog.verifyCloseButtonPresented();
    embedMapDialog.verifyMapElementsPresented();
    embedMapDialog.verifyBrandFooterNotVisible();
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) EmbedMapComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject) Test(org.testng.annotations.Test) DontRun(com.wikia.webdriver.common.core.annotations.DontRun)

Example 4 with DontRun

use of com.wikia.webdriver.common.core.annotations.DontRun 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 5 with DontRun

use of com.wikia.webdriver.common.core.annotations.DontRun 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

DontRun (com.wikia.webdriver.common.core.annotations.DontRun)25 Test (org.testng.annotations.Test)25 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)23 InteractiveMapPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject)22 InteractiveMapsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject)22 Execute (com.wikia.webdriver.common.core.annotations.Execute)16 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)11 AddPinComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject)6 CreatePinTypesComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject)5 NetworkTrafficDump (com.wikia.webdriver.common.core.annotations.NetworkTrafficDump)2 CreateAMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject)2 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)1 CreateACustomMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject)1 CreateRealMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject)1 EmbedMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject)1 TemplateComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.TemplateComponentObject)1 AdsBaseObject (com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject)1 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)1