use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEVideoTests method previewVideo.
@Test(groups = { "VEVideo", "VEVideoPreview" })
@Execute(asUser = User.USER_9)
public void previewVideo() {
String mediaTitle = "Short film directed by Guy Ritchie starring David Beckham - H&M Spring 2013";
String articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, articleName);
VisualEditorAddMediaDialog mediaDialog = ve.searchVideo(mediaTitle);
ve = mediaDialog.previewExistingVideoByTitle(mediaTitle);
ve.verifyPreviewVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEVideoTests method removeVideoFromArticle.
@Test(enabled = false, groups = { "VEVideo", "VEAddExistingVideo" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "SUS-757")
public void removeVideoFromArticle() {
String articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, articleName);
VisualEditorPageObject veNew = ve.addVideoToContent(VideoContent.NON_PREMIUM_VIDEO_URL);
veNew.verifyVideos(1);
veNew.publish();
ve.openVEOnArticle(wikiURL, articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
ve.selectMediaAndDelete();
ve.verifyNoVideo();
ve.publish();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEDisabledEditorEntryAnonTests method VEDisabledEditorEntryAnonTestsTests_005_URLEntry.
@Test(groups = { "VEDisabledEditorEntryAnonTests", "VEDisabledEditorEntryAnonTestsTests_005", "veactionURLEntry" })
public void VEDisabledEditorEntryAnonTestsTests_005_URLEntry() {
VisualEditorPageObject ve = base.openNewArticleEditModeVisual(wikiURL);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEDisabledEditorEntryAnonTests method VEDisabledEditorEntryAnonTestsTests_006_ListNamespace.
@Test(groups = { "VEDisabledEditorEntryAnonTests", "VEDisabledEditorEntryAnonTestsTests_006", "listEntry" })
public void VEDisabledEditorEntryAnonTestsTests_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 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