use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject in project selenium-tests by Wikia.
the class BlockedUserMapTests method BlockedUserMapTests_004_VerifyUserCannotCreateCustomMap.
@RelatedIssue(issueID = "", comment = "Functionality is being depracated No need to test manually")
@Test(groups = { "BlockedUserMapTests_004", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_004_VerifyUserCannotCreateCustomMap() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject createMap = specialMaps.clickCreateAMap();
CreateACustomMapComponentObject customMap = createMap.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();
template.verifyErrorExists();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateACustomMapComponentObject in project selenium-tests by Wikia.
the class NonSpecificMapTests method NonSpecificMapTests_007_VerifyCreateCustomMapErrors.
@Test(enabled = false, groups = { "NonSpecificMapTests_007", "NonSpecificMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void NonSpecificMapTests_007_VerifyCreateCustomMapErrors() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject createMap = specialMap.clickCreateAMap();
CreateACustomMapComponentObject customMap = createMap.clickCustomMap();
TemplateComponentObject templateMap = customMap.selectTemplate(InteractiveMapsContent.SELECTED_TEMPLATE_INDEX);
templateMap.clickNext();
templateMap.verifyErrorExists();
}
Aggregations