[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:
dhrn
2020-05-01 14:10:40 +05:30
committed by GitHub
parent 1430314815
commit 7d2af84a58
6 changed files with 77 additions and 31 deletions

View File

@@ -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);
}

View File

@@ -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();
}