use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class VEEnabledEditorEntryAnonTests method VEEnabledEditorEntryAnonTests_009_actionEdit.
@Test(groups = { "VEEnabledEditorEntryAnonTests", "VEEnabledEditorEntryAnonTests_009", "actionURLEntry" })
public void VEEnabledEditorEntryAnonTests_009_actionEdit() {
VisualEditModePageObject ck = base.navigateToArticleEditPage(wikiURL, base.getNameForArticle());
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class VEDisabledEditorEntryAnonTests method VEDisabledEditorEntryAnonTestsTests_009_actionEdit.
@Test(groups = { "VEDisabledEditorEntryAnonTests", "VEDisabledEditorEntryAnonTestsTests_009", "actionURLEntry" })
public void VEDisabledEditorEntryAnonTestsTests_009_actionEdit() {
VisualEditModePageObject ck = base.navigateToArticleEditPage(wikiURL, base.getNameForArticle());
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class VEDisabledEditorEntryAnonTests method VEDisabledEditorEntryAnonTestsTests_001_CreatePageEntry.
@Test(groups = { "VEDisabledEditorEntryAnonTests", "VEDisabledEditorEntryAnonTestsTests_001", "createPageEntry" })
public void VEDisabledEditorEntryAnonTestsTests_001_CreatePageEntry() {
String articleName = base.getNameForArticle();
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditModePageObject ck = article.createArticleInCKUsingDropdown(articleName);
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class VEDisabledEditorEntryAnonTests method VEDisabledEditorEntryAnonTestsTests_002_MainEditEntry.
@Test(groups = { "VEDisabledEditorEntryAnonTests", "VEDisabledEditorEntryAnonTestsTests_002", "articleEditEntry" })
public void VEDisabledEditorEntryAnonTestsTests_002_MainEditEntry() {
ArticlePageObject article = new ArticlePageObject().open(base.getNameForArticle());
VisualEditModePageObject ck = article.openCKModeWithMainEditButton();
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticlePageObject method verifyCreateAPageEditor.
public void verifyCreateAPageEditor(Editor expectedEditor, String articleName) {
switch(expectedEditor) {
case VE:
VisualEditorPageObject ve = createArticleInVEUsingDropdown(articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
break;
case CK:
VisualEditModePageObject ck = createArticleInCKUsingDropdown(articleName);
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
break;
case SRC:
SourceEditModePageObject src = createArticleInSrcUsingDropdown(articleName);
src.verifySourceOnlyMode();
src.clickPublishButton();
break;
}
}
Aggregations