Search in sources :

Example 1 with CloudServicesTab

use of com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.CloudServicesTab in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class PageTests method testCloudServicesPageProperties.

public void testCloudServicesPageProperties() throws InterruptedException {
    // Open properties page
    PropertiesPage propertiesPage = new PropertiesPage(testPage);
    propertiesPage.open();
    // Open Cloud Service tab
    CloudServicesTab cloudServicesTab = propertiesPage.clickTab("cloud services", CloudServicesTab.class);
    // Add cloud configuration
    cloudServicesTab.addCloudConfiguration(cloudServiceConfig);
    // Delete the added cloud configuration
    cloudServicesTab.deleteCloudConfiguration();
    // Add cloud configuration again
    cloudServicesTab.addCloudConfiguration(cloudServiceConfig);
    // save the configuration and open again the page property
    propertiesPage.saveAndClose();
    Commons.webDriverWait(RequestConstants.WEBDRIVER_WAIT_TIME_MS);
    propertiesPage.open();
    propertiesPage.clickTab("cloud services", CloudServicesTab.class);
    Commons.webDriverWait(RequestConstants.WEBDRIVER_WAIT_TIME_MS);
    // Check is cloud configuration is set
    assertTrue(page.isCloudServiceConfigAdded(), "Cloud Service Config should be set");
}
Also used : CloudServicesTab(com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.CloudServicesTab) PropertiesPage(com.adobe.cq.testing.selenium.pageobject.cq.sites.PropertiesPage)

Aggregations

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