use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class ArticlePageObject method verifyURLVEActionEditEditor.
public void verifyURLVEActionEditEditor(Editor expectedEditor, String wikiURL) {
switch(expectedEditor) {
case VE:
VisualEditorPageObject ve = openNewArticleEditModeVisual(wikiURL);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
break;
default:
throw new NoSuchElementException("Invalid expected editor chosen: " + expectedEditor.name());
}
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class WikiBasePageObject method openVEModeWithSectionEditButton.
public VisualEditorPageObject openVEModeWithSectionEditButton(int section) {
WebElement sectionEditButton = sectionEditButtons.get(section);
wait.forElementClickable(sectionEditButton);
sectionEditButton.click();
PageObjectLogging.log("openVEModeWithSectionEditButton", "VE edit button clicked at section: " + section, true, driver);
return new VisualEditorPageObject();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class ArticlePageObject method verifyRedLinkEditor.
public void verifyRedLinkEditor(Editor expectedEditor) {
switch(expectedEditor) {
case VE:
VisualEditorPageObject ve = openVEModeWithRedLinks(0);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
break;
case CK:
VisualEditModePageObject ck = openCKModeWithRedLinks(0);
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
break;
case SRC:
SourceEditModePageObject src = openSrcModeWithRedLinks(0);
src.verifySourceOnlyMode();
src.clickPublishButton();
break;
}
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class PortableInfoboxTests method insertEmptyInfoboxInVE.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_003" })
public void insertEmptyInfoboxInVE() {
new ArticleContent().clear();
ArticlePageObject article = new ArticlePageObject();
article.open();
new ArticlePurger().purgeArticleAsAnon();
VisualEditorPageObject visualEditor = article.openVEModeWithMainEditButton().clickInsertToolButton().clickInsertInfoboxFromInsertToolMenu().selectInfoboxTemplate(2).applyChanges();
Assertion.assertTrue(visualEditor.isInfoboxInsertedInEditorArea());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class PortableInfoboxTests method insertInfoboxWithParametersInVE.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_003" })
public void insertInfoboxWithParametersInVE() {
new ArticleContent().clear();
ArticlePageObject article = new ArticlePageObject();
article.open();
new ArticlePurger().purgeArticleAsAnon();
VisualEditorPageObject visualEditor = article.openVEModeWithMainEditButton().clickInsertToolButton().clickInsertInfoboxFromInsertToolMenu().selectInfoboxTemplate(2).typeInParameterField(0, new SourceEditModePageObject(driver).getRandomDigits(5)).applyChanges();
Assertion.assertTrue(visualEditor.isInfoboxInsertedInEditorArea());
}
Aggregations