Search in sources :

Example 1 with WikiHistoryPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.WikiHistoryPageObject in project selenium-tests by Wikia.

the class VisualEditorEditingTests method VisualEditorEditing_007_minorEdit.

@Test(groups = { "VisualEditorEditing", "VisualEditorEditing_007" })
public void VisualEditorEditing_007_minorEdit() {
    base.loginAs(credentials.userName7, credentials.password7, wikiURL);
    String articleName2 = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
    VisualEditorPageObject ve = base.openVEOnArticle(wikiURL, articleName2);
    ve.verifyVEToolBarPresent();
    ve.verifyEditorSurfacePresent();
    ve.typeTextArea("b");
    VisualEditorSaveChangesDialog saveDialog = ve.clickPublishButton();
    saveDialog.clickMinorEdit();
    ArticlePageObject article = saveDialog.savePage();
    article.verifyVEPublishComplete();
    WikiHistoryPageObject historyPage = article.openArticleHistoryPage();
    historyPage.verifyRevisionMarkedAsMinor();
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VisualEditorPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject) VisualEditorSaveChangesDialog(com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorSaveChangesDialog) WikiHistoryPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.WikiHistoryPageObject) Test(org.testng.annotations.Test)

Example 2 with WikiHistoryPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.WikiHistoryPageObject in project selenium-tests by Wikia.

the class VisualEditorEditingTests method VisualEditorEditing_006_editSummary.

@Test(groups = { "VisualEditorEditing", "VisualEditorEditing_006" })
public void VisualEditorEditing_006_editSummary() {
    String summaryText = "This is an example summary text being used by test: VisualEditorEditing_006_editSummary";
    String articleName2 = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
    VisualEditorPageObject ve = base.openVEOnArticle(wikiURL, articleName2);
    ve.verifyVEToolBarPresent();
    ve.verifyEditorSurfacePresent();
    ve.typeTextArea("a");
    VisualEditorSaveChangesDialog saveDialog = ve.clickPublishButton();
    saveDialog.typeEditSummary(summaryText);
    ArticlePageObject article = saveDialog.savePage();
    article.verifyVEPublishComplete();
    WikiHistoryPageObject historyPage = article.openArticleHistoryPage();
    historyPage.verifyLatestEditSummary(summaryText);
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VisualEditorPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject) VisualEditorSaveChangesDialog(com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorSaveChangesDialog) WikiHistoryPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.WikiHistoryPageObject) Test(org.testng.annotations.Test)

Aggregations

VisualEditorSaveChangesDialog (com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorSaveChangesDialog)2 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)2 VisualEditorPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject)2 WikiHistoryPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.WikiHistoryPageObject)2 Test (org.testng.annotations.Test)2