use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject in project selenium-tests by Wikia.
the class BlockedUserMapTests method BlockedUserMapTests_003_VerifyUserCannotCreateRealMap.
@Test(groups = { "BlockedUserMapTests_003", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_003_VerifyUserCannotCreateRealMap() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject createMap = specialMaps.clickCreateAMap();
CreateRealMapComponentObject realMap = createMap.clickRealMap();
realMap.typeMapName(InteractiveMapsContent.MAP_NAME);
realMap.clickNext();
realMap.verifyErrorExists();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject 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.componentobject.interactivemaps.CreateRealMapComponentObject in project selenium-tests by Wikia.
the class VEAddMapTests method VEAddMapTests_003_InsertMapFromZeroState.
@RelatedIssue(issueID = "WW-108")
@Test(enabled = false, groups = { "VEAddMapTests_003", "VEAddMapFromZeroState" })
@Execute(asUser = User.USER_12, onWikia = URLsContent.VE_DISABLED_WIKI)
public void VEAddMapTests_003_InsertMapFromZeroState() {
articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
VisualEditorAddMapDialog mapDialog = (VisualEditorAddMapDialog) ve.openDialogFromMenu(InsertDialog.MAP);
CreateAMapComponentObject map = mapDialog.clickCreateAMapButton();
CreateRealMapComponentObject realMap = map.clickRealMap();
realMap.verifyRealMapPreviewImage();
realMap.typeMapName(InteractiveMapsContent.MAP_NAME);
CreatePinTypesComponentObject pinDialog = realMap.clickNext();
pinDialog.typePinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, InteractiveMapsContent.PIN_TYPE_INDEX);
createdMap = pinDialog.clickSave();
createdMap.verifyMapOpened();
mapID = createdMap.getEmbedMapID();
createdMap.verifyControlButtonsAreVisible();
ve.openInteractiveMapById(wikiURL, Integer.parseInt(mapID));
DeleteAMapComponentObject deleteMapModal = createdMap.deleteMap();
InteractiveMapsPageObject specialMaps = deleteMapModal.deleteMap();
specialMaps.verifyEmptyState();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_003_CreateRealMap.
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(groups = { "MapFlowTests_003", "MapFlowTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "MAIN-5732", comment = "Not possible to test manually in preview environment")
public void MapFlowTests_003_CreateRealMap() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
CreateRealMapComponentObject realMap = map.clickRealMap();
realMap.verifyRealMapPreviewImage();
realMap.typeMapName(InteractiveMapsContent.MAP_NAME);
CreatePinTypesComponentObject pinDialog = realMap.clickNext();
pinDialog.typePinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, InteractiveMapsContent.PIN_TYPE_INDEX);
InteractiveMapPageObject createdMap = pinDialog.clickSave();
createdMap.verifyMapOpened();
createdMap.verifyControlButtonsAreVisible();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateRealMapComponentObject in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_004_VerifyBackButtonWorksCorrectly.
@Test(groups = { "MapFlowTests_004", "MapFlowTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void MapFlowTests_004_VerifyBackButtonWorksCorrectly() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMap = map.clickCustomMap();
TemplateComponentObject template = customMap.selectTemplate(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
template.verifyTemplateImagePreview();
customMap = template.clickBack();
customMap.verifyTemplateListElementVisible(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
map = customMap.clickBack();
map.verifyRealMapAndCustomMapButtons();
CreateRealMapComponentObject realMap = map.clickRealMap();
realMap.verifyRealMapPreviewImage();
map = realMap.clickBack();
map.verifyRealMapAndCustomMapButtons();
}
Aggregations