[ADF-5078] Start Task e2e (#5485)

* [ADF-5078] Start Task e2e

* * improved test

* * fixed import
This commit is contained in:
dhrn
2020-02-19 16:13:43 +05:30
committed by GitHub
parent 2f89787b7a
commit c12eee1f59
17 changed files with 289 additions and 255 deletions

View File

@@ -59,18 +59,14 @@ describe('Attachment list action menu for tasks', () => {
});
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
const user = await users.createTenantAndUser(this.alfrescoJsApi);
tenantId = user.tenantId;
await this.alfrescoJsApi.login(user.email, user.password);
const importedApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
appId = importedApp.id;
const { id } = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
appId = id;
await loginPage.loginToProcessServicesUsingUserModel(user);
});
afterAll(async () => {
@@ -84,9 +80,7 @@ describe('Attachment list action menu for tasks', () => {
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToApp(app.title)).clickTasksButton();
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
const task = await taskPage.createNewTask();
await task.addName(taskName.active);
await task.clickStartButton();
await taskPage.createTask({name: taskName.active});
await attachmentListPage.clickAttachFileButton(pngFile.location);
await attachmentListPage.viewFile(pngFile.name);