use of com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorMediaSettingsDialog in project selenium-tests by Wikia.
the class VEImageTests method editImageCaption.
@Test(groups = { "VEImageTests", "VEMediaSetting" })
@Execute(asUser = User.USER_9)
public void editImageCaption() {
String captionText = "test123";
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis());
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
VisualEditorAddMediaDialog mediaDialog = ve.clickImageButton();
mediaDialog = mediaDialog.searchMedia("h");
ve = mediaDialog.addExistingMedia(1);
ve.verifyVideos(1);
ve.selectMedia();
VisualEditorMediaSettingsDialog mediaSettingsDialog = ve.openMediaSettings();
mediaSettingsDialog.typeCaption(captionText);
ve = mediaSettingsDialog.clickApplyChangesButton();
ve.verifyVideoCaption(captionText);
ve.publish();
}
Aggregations