コード例 #1
0
 @RelatedIssue(issueID = " ", comment = "This maps test should not fail")
 @DontRun(env = {"dev", "sandbox", "preview"})
 @Test(groups = {"PinMapTests_004", "PinMapTests", "InteractiveMaps"})
 @Execute(asUser = User.USER)
 public void PinMapTests_004_VerifyPopUpAfterClickPin() {
   WikiBasePageObject base = new WikiBasePageObject();
   InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
   InteractiveMapPageObject selectedMap =
       specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
   selectedMap.verifyMapOpened();
   selectedMap.clickOnPin(0);
   selectedMap.verifyPopUpVisible();
 }
コード例 #2
0
 @DontRun(env = {"dev", "sandbox", "preview"})
 @Test(
     enabled = false,
     groups = {"PinMapTests_005", "PinMapTests", "InteractiveMaps"})
 @Execute(asUser = User.USER)
 public void PinMapTests_005_VerifyDeletePin() {
   WikiBasePageObject base = new WikiBasePageObject();
   InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
   InteractiveMapPageObject selectedMap =
       specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
   selectedMap.verifyMapOpened();
   selectedMap.clickOnFilterBoxTitle();
   selectedMap.clickOnPin(0);
   String pinName = selectedMap.getOpenPinName();
   selectedMap.verifyPopUpVisible();
   AddPinComponentObject editPinModal = selectedMap.clickOnEditPin();
   selectedMap = editPinModal.clickDeletePin();
   selectedMap.verifyPinNotExists(pinName);
 }