use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VisualEditorEditingTests method VisualEditorEditing_003_insertToExistingArticle.
@Test(groups = { "VisualEditorEditing", "VisualEditorEditing_003" })
public void VisualEditorEditing_003_insertToExistingArticle() {
new ArticleContent().push(startingWikiText);
VisualEditorPageObject ve = new VisualEditorPageObject().open();
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
ve.putCursorAtTheEnd();
ve.typeReturn();
ve.typeReturn();
ve.typeTextInAllFormat(text);
ve.typeTextInAllStyle(text);
ve.typeTextInAllList(text);
VisualEditorSaveChangesDialog saveDialog = ve.clickPublishButton();
VisualEditorReviewChangesDialog reviewDialog = saveDialog.clickReviewYourChanges();
reviewDialog.verifyAddedDiffs(wikiTexts);
saveDialog = reviewDialog.clickReturnToSaveFormButton();
ArticlePageObject article = saveDialog.savePage();
article.verifyVEPublishComplete();
article.verifyContent(text);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEVideoTests method resizeVideoWithSetting.
@Test(groups = { "VEVideo", "VEMediaResize" })
@Execute(asUser = User.USER_9)
public void resizeVideoWithSetting() {
int resizeNumber = 250;
String articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, articleName);
VisualEditorAddMediaDialog mediaDialog = ve.searchVideo("h");
ve = mediaDialog.addExistingMedia(1);
ve.verifyVideos(1);
Dimension source = ve.getVideoDimension();
ve.selectMedia();
ve.resizeMedia(resizeNumber, ImageSize.WIDTH);
ve.verifyVideoResized(source);
source = ve.getVideoDimension();
ve.resizeMedia(resizeNumber, ImageSize.HEIGHT);
ve.verifyVideoResized(source);
ve.publish();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class RTEDisabledEditorEntryAnonTests method RTEDisabledEditorEntryAnonTests_006_ListNamespace.
@Test(groups = { "RTEDisabledEditorEntryAnonTests", "RTEDisabledEditorEntryAnonTests_006", "listEntry" })
public void RTEDisabledEditorEntryAnonTests_006_ListNamespace() {
ArticlePageObject article = new ArticlePageObject().open(URLsContent.LIST_PAGE);
VisualEditorPageObject ve = article.openVEModeWithMainEditButton();
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class RTEDisabledEditorEntryAnonTests method RTEDisabledEditorEntryAnonTests_001_CreatePageEntry.
@Test(groups = { "RTEDisabledEditorEntryAnonTests", "RTEDisabledEditorEntryAnonTests_001", "createPageEntry" })
public void RTEDisabledEditorEntryAnonTests_001_CreatePageEntry() {
String articleName = base.getNameForArticle();
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditorPageObject ve = article.createArticleInVEUsingDropdown(articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEDisabledEditorEntryAnonTests method VEDisabledEditorEntryAnonTestsTests_007_CategoryNamespace.
@Test(groups = { "VEDisabledEditorEntryAnonTests", "VEDisabledEditorEntryAnonTestsTests_007", "categoryEntry" })
public void VEDisabledEditorEntryAnonTestsTests_007_CategoryNamespace() {
ArticlePageObject article = new ArticlePageObject().open(URLsContent.CATEGORY_PAGE);
VisualEditorPageObject ve = article.openVEModeWithMainEditButton();
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
}
Aggregations