use of com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorAddMediaDialog 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.componentobject.visualeditordialogs.VisualEditorAddMediaDialog in project selenium-tests by Wikia.
the class VEVideoTests method resizeVideoWithHandle.
@Test(groups = { "VEVideo", "VEMediaResize" })
@Execute(asUser = User.USER_9)
public void resizeVideoWithHandle() {
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.randomResizeOnMedia();
ve.verifyVideoResized(source);
ve.publish();
}
Aggregations