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