use of com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.ImageTab in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class PageTests method testImagePageProperties.
public void testImagePageProperties() {
// Open properties page
PropertiesPage propertiesPage = new PropertiesPage(testPage);
propertiesPage.open();
// open the Thumbnail tab
ImageTab imageTab = propertiesPage.clickTab("images", ImageTab.class);
// Generate thumbnail preview
imageTab.generateThumbnailPreview();
// Revert button should be visible
assertTrue(imageTab.getRevert().isDisplayed(), "Revert button should be visible");
// Revert the thumbnail preview
imageTab.revertThumbnailPreview();
// Revert button should disappear
assertTrue(!imageTab.getRevert().isDisplayed(), "Revert button should not be visible");
}
Aggregations