use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject 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.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VECategoryTests method VECategoryTests_002_RemoveCategory.
//CA02
@Test(groups = { "VECategoryTests", "VECategoryTests_002", "VERemoveCategory" }, dependsOnGroups = "VECategoryTests_001")
public void VECategoryTests_002_RemoveCategory() {
VisualEditorPageObject ve = base.openVEOnArticle(wikiURL, articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
VisualEditorOptionsDialog optionsDialog = (VisualEditorOptionsDialog) ve.openDialogFromMenu(InsertDialog.CATEGORIES);
optionsDialog.removeCategory(testCategory);
ve = optionsDialog.clickApplyChangesButton();
ve.verifyVEToolBarPresent();
VisualEditorSaveChangesDialog saveDialog = ve.clickPublishButton();
VisualEditorReviewChangesDialog reviewDialog = saveDialog.clickReviewYourChanges();
reviewDialog.verifyDeletedDiffs(categoryWikiTexts);
saveDialog = reviewDialog.clickReturnToSaveFormButton();
ArticlePageObject article = saveDialog.savePage();
article.verifyVEPublishComplete();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class ArticlePageObject method verifySectionEditEditor.
public void verifySectionEditEditor(Editor expectedEditor) {
switch(expectedEditor) {
case VE:
VisualEditorPageObject ve = openVEModeWithSectionEditButton(0);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
break;
case CK:
VisualEditModePageObject ck = openCKModeWithSectionEditButton(0);
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
break;
case SRC:
SourceEditModePageObject src = openSrcModeWithSectionEditButton(0);
src.verifySourceOnlyMode();
src.clickPublishButton();
break;
}
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class ArticlePageObject method openVEModeWithRedLinks.
public VisualEditorPageObject openVEModeWithRedLinks(int linkNumber) {
WebElement redLinkToClick = redLinks.get(linkNumber);
VECreateArticleModalComponentObject veArticleModal = clickVERedLink(redLinkToClick);
veArticleModal.createPage();
return new VisualEditorPageObject();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class ArticlePageObject method verifyMainEditEditor.
public void verifyMainEditEditor(Editor expectedEditor) {
switch(expectedEditor) {
case VE:
VisualEditorPageObject ve = openVEModeWithMainEditButton();
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
break;
case CK:
VisualEditModePageObject ck = openCKModeWithMainEditButton();
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
break;
case SRC:
SourceEditModePageObject src = openSrcModeWithMainEditButton();
src.verifySourceOnlyMode();
src.clickPublishButton();
break;
}
}
Aggregations