[ADF-5066] APS2 › Process List test need to be automated (#5441)

* [ADF-5066] APS2 › Process List test need to be automated

* fixed spell check error

* fixed errors

* taskname from resource

* fixed e2e

* fixed comments

* fixed declartions
This commit is contained in:
dhrn
2020-02-05 22:19:30 +05:30
committed by GitHub
parent a98249e07f
commit 4b1471d9c3
10 changed files with 196 additions and 10 deletions

View File

@@ -15,7 +15,8 @@
* limitations under the License.
*/
import { DataTableComponentPage } from '@alfresco/adf-testing';
import { BrowserVisibility, DataTableComponentPage } from '@alfresco/adf-testing';
import { by, element } from 'protractor';
export class ProcessDetailsCloudDemoPage {
@@ -28,4 +29,8 @@ export class ProcessDetailsCloudDemoPage {
async selectProcessTaskByName(taskName: string): Promise<void> {
await this.dataTable.selectRow('Name', taskName);
}
async checkListedSelectedProcessInstance(processInstanceId: string): Promise<void> {
await BrowserVisibility.waitUntilElementIsPresent(element(by.cssContainingText('div ul', processInstanceId)));
}
}