Search in sources :

Example 1 with ThumbnailTab

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");
}
Also used : PropertiesPage(com.adobe.cq.testing.selenium.pageobject.cq.sites.PropertiesPage) ThumbnailTab(com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.ThumbnailTab)

Aggregations

PropertiesPage (com.adobe.cq.testing.selenium.pageobject.cq.sites.PropertiesPage)1 ThumbnailTab (com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.ThumbnailTab)1