use of com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.BlueprintTab in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class PageTests method testBlueprintPageProperties.
public void testBlueprintPageProperties() throws ClientException, InterruptedException {
// create the live copy page, store page path in 'testLiveCopyPagePath'
String testLiveCopyPagePath = Commons.createLiveCopy(adminClient, testPage, rootPage, "testLiveCopy", "testLiveCopy", 200);
// Open properties page
PropertiesPage propertiesPage = new PropertiesPage(testPage);
propertiesPage.open();
// open the Blueprint tab
BlueprintTab blueprintTab = propertiesPage.clickTab("blueprint", BlueprintTab.class);
RolloutDialog rolloutDialog = blueprintTab.rollout();
Commons.webDriverWait(RequestConstants.WEBDRIVER_WAIT_TIME_MS);
// check livecopy is present for rollout
assertTrue(rolloutDialog.numberOfLiveCopies() == 1, "There should be 1 livecopy");
assertTrue(rolloutDialog.isLiveCopySelected(testLiveCopyPagePath), "Livecopy should be selected");
// Check cancel rollout
rolloutDialog.close();
// Open Blueprint tab
Commons.webDriverWait(RequestConstants.WEBDRIVER_WAIT_TIME_MS);
propertiesPage.clickTab("blueprint", BlueprintTab.class);
rolloutDialog = blueprintTab.rollout();
// check rollout now
rolloutDialog.rolloutNow();
// Delete the created livecopy page
adminClient.deletePageWithRetry(testLiveCopyPagePath, true, false, RequestConstants.TIMEOUT_TIME_MS, RequestConstants.RETRY_TIME_INTERVAL, HttpStatus.SC_OK);
}
Aggregations