use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_001_EmbedMapInWikiaPage.
@Test(enabled = false, groups = { "EmbedMapTests_001", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_001_EmbedMapInWikiaPage() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
String wikiEmbedCode = selectedMap.getEmbedMapWikiCode();
String mapID = selectedMap.getEmbedMapID();
WikiArticleEditMode editMode = selectedMap.openEmbedMapPageEdit(wikiURL);
editMode.clickSourceButton();
editMode.clearSource();
editMode.verifySourceEditorContentIsEmpty();
editMode.typeContentInSourceMode(wikiEmbedCode);
editMode.clickOnPublish();
editMode.verifyEmbededMap(mapID);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject in project selenium-tests by Wikia.
the class FilterBoxMapTests method FilterBoxMapTests_002_VerifyClickOnUncheckedCategory.
@Test(groups = { "FilterBoxMapTests_002", "FilterBoxMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "SUS-140", comment = "test is unstable, check locally or test manually")
public void FilterBoxMapTests_002_VerifyClickOnUncheckedCategory() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickOnSingleEnabledCategory();
selectedMap.verifyAllPinTypesIsUncheck();
selectedMap.clickOnSingleDisabledCategory();
selectedMap.verifyAllPinTypesIsCheck();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject in project selenium-tests by Wikia.
the class FilterBoxMapTests method FilterBoxMapTests_001_VerifyUncheckedSingleCategory.
@Test(groups = { "FilterBoxMapTests_001", "FilterBoxMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "SUS-140", comment = "test is unstable, check locally or test manually")
public void FilterBoxMapTests_001_VerifyUncheckedSingleCategory() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickOnSingleEnabledCategory();
selectedMap.verifyAllPinTypesIsUncheck();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject 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.pageobject.special.interactivemaps.InteractiveMapsPageObject in project selenium-tests by Wikia.
the class BlockedUserMapTests method BlockedUserMapTests_001_VerifyBlockedUserCannotEditPinTypes.
@Test(groups = { "BlockedUserMapTests_001", "BlockedUserMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
public void BlockedUserMapTests_001_VerifyBlockedUserCannotEditPinTypes() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMaps.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
CreatePinTypesComponentObject editPinTypes = selectedMap.clickEditPinTypesButton();
editPinTypes.typeManyPinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, 3);
editPinTypes.clickSave();
editPinTypes.verifyErrorExists();
}
Aggregations