Search in sources :

Example 1 with ImageTab

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

Aggregations

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