use of com.wikia.webdriver.pageobjectsfactory.componentobject.addphoto.AddPhotoComponentObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addGallery.
@Test(groups = { "ArticleFeaturesCRUDUser_001", "Smoke" })
@Execute(asUser = User.USER)
public void addGallery() {
new ArticleContent().clear();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.clearContent();
GalleryBuilderComponentObject galleryBuiler = visualEditMode.clickGalleryButton();
AddPhotoComponentObject galleryAddPhoto = galleryBuiler.clickAddPhoto();
galleryAddPhoto.search("image");
galleryAddPhoto.choosePhotos(4);
galleryAddPhoto.clickSelect();
galleryBuiler.adjustPosition(PositionsGallery.CENTER);
galleryBuiler.adjustColumns("2");
galleryBuiler.adjustSpacing(SpacingGallery.SMALL);
galleryBuiler.adjustOrientation(Orientation.LANDSCAPE);
galleryBuiler.clickFinish();
visualEditMode.verifyGallery();
visualEditMode.submitArticle().verifyGallery();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.addphoto.AddPhotoComponentObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifyGallery.
@Test(groups = { "Smoke" })
@Execute(asUser = User.USER)
public void modifyGallery() {
new ArticleContent().push("<gallery position=\"right\" columns=\"1\" spacing=\"medium\">\n" + "Image010.jpg\n" + "Image009.jpg\n" + "</gallery>");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
GalleryBuilderComponentObject galleryBuiler = (GalleryBuilderComponentObject) visualEditMode.modifyComponent(Components.GALLERY);
AddPhotoComponentObject galleryAddPhoto = galleryBuiler.clickAddPhoto();
galleryAddPhoto.search("image");
galleryAddPhoto.choosePhotos(2);
galleryAddPhoto.clickSelect();
galleryBuiler.adjustPosition(PositionsGallery.RIGHT);
galleryBuiler.adjustColumns("3");
galleryBuiler.adjustSpacing(SpacingGallery.MEDIUM);
galleryBuiler.adjustOrientation(Orientation.PORTRAIT);
galleryBuiler.clickFinish();
visualEditMode.verifyGallery();
visualEditMode.submitArticle().verifyGallery();
}
Aggregations