use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class DeleteAndRestoreMapTests method DeleteAndRestoreMapTests_002_DeleteMapByNotOwner.
@Test(groups = { "DeleteAndRestoreMapTests_002", "DeleteAndRestoreMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER_2)
public void DeleteAndRestoreMapTests_002_DeleteMapByNotOwner() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapPageObject selectedMap = base.openInteractiveMapById(wikiURL, InteractiveMapsContent.MAP_TO_DELETE_AND_RESTORE[1]);
DeleteAMapComponentObject deleteMapModal = selectedMap.deleteMap();
deleteMapModal.clickDeleteMap();
Assertion.assertEquals(deleteMapModal.getDeleteMapError(), InteractiveMapsContent.MAP_DELETE_ERROR);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_004_VerifyEmbedMapOutsideWikia.
@Test(enabled = false, groups = { "EmbedMapTests_004", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_004_VerifyEmbedMapOutsideWikia() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickEmbedMapCodeButton();
selectedMap.verifyEmbedMapDialog();
selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.SMALL);
String mapCode = selectedMap.getEmbedMapCode();
DabbletComPageObject outPage = new DabbletComPageObject(driver);
outPage.openOutPage();
outPage.typeHtmlCode(mapCode);
outPage.verifyMapEmbed();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_006_VerifyEmbeddedMapAddPinType.
@Test(enabled = false, groups = { "EmbedMapTests_006", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_006_VerifyEmbeddedMapAddPinType() {
WikiBasePageObject base = new WikiBasePageObject();
ArticlePageObject article = new ArticlePageObject();
article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
CreatePinTypesComponentObject pinTypesDialog = embedMapDialog.clickEditPinTypesButton();
pinTypesDialog.verifyPinTypesDialog();
pinTypesDialog.deletePinTypes();
pinTypesDialog.typeManyPinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, 4);
pinTypesDialog.clickSave();
embedMapDialog.verifyPinTypeExists(InteractiveMapsContent.PIN_TYPE_NAME);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_003_VerifyEmbedMapCodeButton.
@Test(enabled = false, groups = { "EmbedMapTests_003", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_003_VerifyEmbedMapCodeButton() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickEmbedMapCodeButton();
selectedMap.verifyEmbedMapDialog();
selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.SMALL);
selectedMap.verifyEmbedMapCode(InteractiveMapPageObject.embedMapDialogButtons.SMALL);
selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.MEDIUM);
selectedMap.verifyEmbedMapCode(InteractiveMapPageObject.embedMapDialogButtons.MEDIUM);
selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.LARGE);
selectedMap.verifyEmbedMapCode(InteractiveMapPageObject.embedMapDialogButtons.LARGE);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class MapFlowTests method MapFlowTests_001_CreateCustomMapNewImageUpload.
@Test(groups = { "MapFlowTests_001", "MapFlowTests", "InteractiveMaps" }, enabled = false)
@Execute(asUser = User.USER)
public void MapFlowTests_001_CreateCustomMapNewImageUpload() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject map = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMap = map.clickCustomMap();
TemplateComponentObject template = customMap.selectFileToUpload(PageContent.FILE);
template.verifyTemplateImagePreview();
template.typeMapName(InteractiveMapsContent.MAP_NAME);
InteractiveMapsContent.TEMPLATE_NAME = base.getTimeStamp();
template.typeTemplateName(InteractiveMapsContent.TEMPLATE_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();
}
Aggregations