use of com.wikia.webdriver.common.core.annotations.DontRun in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_002_CreateCustomMapWithExistingTemplate.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(groups = { "MapFlowTests_002", "MapFlowTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "MAIN-5732", comment = "Not possible to test manually in preview environment")
public void MapFlowTests_002_CreateCustomMapWithExistingTemplate() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMap = map.clickCustomMap();
String selectedImageName = customMap.getSelectedTemplateImageName(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
TemplateComponentObject template = customMap.selectTemplate(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
template.verifyTemplateImage(selectedImageName);
template.typeMapName(InteractiveMapsContent.MAP_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();
}
use of com.wikia.webdriver.common.core.annotations.DontRun in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_008_VerifyErrorMessageWhenAssociatedArticleNotExist.
@Test(enabled = false, groups = { "PinMapTests_008", "PinMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
public void PinMapTests_008_VerifyErrorMessageWhenAssociatedArticleNotExist() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMaps.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
AddPinComponentObject addPinModal = selectedMap.placePinInMap();
addPinModal.typePinName(InteractiveMapsContent.PIN_NAME);
addPinModal.typeAssociatedArticle(InteractiveMapsContent.ARTICLE_WHICH_DOES_NOT_EXIST);
addPinModal.selectPinType();
addPinModal.clickSaveButton();
addPinModal.verifyErrorContent(InteractiveMapsContent.ARTICLE_NOT_EXIST_ERROR.replace("%articlename%", InteractiveMapsContent.ARTICLE_WHICH_DOES_NOT_EXIST));
}
use of com.wikia.webdriver.common.core.annotations.DontRun in project selenium-tests by Wikia.
the class PinMapTests method PinMapTests_006_VerifyChangePinData.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(enabled = false, groups = { "PinMapTests_006", "PinMapTests", "InteractiveMaps", "PinMapTests_004" })
@Execute(asUser = User.USER)
public void PinMapTests_006_VerifyChangePinData() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickOnFilterBoxTitle();
AddPinComponentObject pinModal = selectedMap.placePinInMap();
String pinTitle = base.getTimeStamp();
String pinDescription = base.getTimeStamp() + base.getTimeStamp();
pinModal.typePinName(pinTitle);
pinModal.selectPinType();
pinModal.typePinDescription(pinDescription);
selectedMap = pinModal.clickSaveButton();
pinModal = selectedMap.clickOnEditPin();
pinModal.clearPinName();
pinModal.typePinName(base.getTimeStamp() + base.getTimeStamp());
pinModal.clearPinDescription();
pinModal.typePinDescription(base.getTimeStamp());
selectedMap = pinModal.clickSaveButton();
selectedMap.verifyPinDataWasChanged(pinTitle, pinDescription);
selectedMap.refreshPage();
selectedMap.clickOnPin(0);
}
use of com.wikia.webdriver.common.core.annotations.DontRun in project selenium-tests by Wikia.
the class TestAdsTrackingPixels method adsTrackingPixelSentAuthPage.
@NetworkTrafficDump(useMITM = true)
@Test(groups = "AdsTrackingPixelsAuthPage", dataProviderClass = AdsDataProvider.class, dataProvider = "adsTrackingPixelsSentAuthPage")
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@DontRun(env = { "preview", "sandbox" })
public void adsTrackingPixelSentAuthPage(String wiki, String page, String[] pixelUrls) {
networkTrafficInterceptor.startIntercepting();
String testedPage = urlBuilder.getUrlForWiki(wiki) + page;
AdsBaseObject adsBaseObject = new AdsBaseObject(driver, testedPage);
assertTrackingPixelsSent(adsBaseObject, pixelUrls);
}
use of com.wikia.webdriver.common.core.annotations.DontRun in project selenium-tests by Wikia.
the class PinTypeMapTests method PinTypeMapTests_002_VerifyClickingAddAnotherPinType.
@Test(groups = { "PinTypeMapTests_002", "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_002_VerifyClickingAddAnotherPinType() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickEditPinTypesButton();
CreatePinTypesComponentObject pinTypesDialog = new CreatePinTypesComponentObject(driver);
pinTypesDialog.verifyPinTypesDialog();
pinTypesDialog.savePinTypesListState();
pinTypesDialog.clickAddAnotherPinType();
pinTypesDialog.verifyAddAnotherPinType();
}
Aggregations