mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-2505] [PS cloud] Should not allow to start the process if is not created (#5659)
* * fixed bug * * cherry pick
This commit is contained in:
@@ -39,19 +39,19 @@ export class GroupCloudComponentPage {
|
||||
}
|
||||
|
||||
async selectGroupFromList(name: string): Promise<void> {
|
||||
const groupRow = element.all(by.cssContainingText('mat-option span', name)).first();
|
||||
const groupRow = element.all(by.css(`mat-option[data-automation-id="adf-cloud-group-chip-${name}"]`)).first();
|
||||
|
||||
await BrowserActions.click(groupRow);
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(groupRow);
|
||||
}
|
||||
|
||||
async checkGroupIsDisplayed(name: string): Promise<void> {
|
||||
const groupRow = element.all(by.cssContainingText('mat-option span', name)).first();
|
||||
const groupRow = element.all(by.css(`mat-option[data-automation-id="adf-cloud-group-chip-${name}"]`)).first();
|
||||
await BrowserVisibility.waitUntilElementIsVisible(groupRow);
|
||||
}
|
||||
|
||||
async checkGroupIsNotDisplayed(name: string): Promise<void> {
|
||||
const groupRow = element.all(by.cssContainingText('mat-option span', name)).first();
|
||||
const groupRow = element.all(by.css(`mat-option[data-automation-id="adf-cloud-group-chip-${name}"]`)).first();
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(groupRow);
|
||||
}
|
||||
|
||||
|
@@ -87,6 +87,7 @@ export class StartProcessCloudPage {
|
||||
}
|
||||
|
||||
async checkStartProcessButtonIsEnabled(): Promise<boolean> {
|
||||
await browser.sleep(1000); // waiting for API response
|
||||
await BrowserVisibility.waitUntilElementIsPresent(this.startProcessButton);
|
||||
return this.startProcessButton.isEnabled();
|
||||
}
|
||||
@@ -114,7 +115,6 @@ export class StartProcessCloudPage {
|
||||
await this.clearField(this.processNameInput);
|
||||
await this.enterProcessName(processName);
|
||||
await this.selectFromProcessDropdown(processDefinition);
|
||||
await browser.sleep(4000); // remove this once AAE-2505 is fixed
|
||||
await this.checkStartProcessButtonIsEnabled();
|
||||
await this.clickStartProcessButton();
|
||||
}
|
||||
|
Reference in New Issue
Block a user