use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class NonSpecificMapTests method NonSpecificMapTests_002_VerifyLoginModalWhenAnon.
@Test(enabled = false, groups = { "NonSpecificMapTests_002", "NonSpecificMapTests", "InteractiveMaps" })
public void NonSpecificMapTests_002_VerifyLoginModalWhenAnon() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
map.verifyLoginModal();
}
Aggregations