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");
}
Aggregations