mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3962] sso download directive automated (#4452)
* sso download directive automated * temp changes * temp changes * moving of services under lib testing and ADF-3962 automated * removed the browser sleep * cspell and linting fixes. * codacy improvements * export public-api update * remove circular dep * remove circular dep * fixes * fix user info test * fix datatable * random commit * move other string * fix lint * fix lint * fix prolem type * fix failing test * fix tag test * fix problems after rebase * fix lint * remove space * remove visibility method duplicated
This commit is contained in:
committed by
Eugenio Romano
parent
89f612bbb0
commit
4376d357ac
@@ -17,13 +17,12 @@
|
||||
|
||||
import TestConfig = require('../test.config');
|
||||
|
||||
import { LoginSSOPage } from '@alfresco/adf-testing';
|
||||
import { ApiService, LoginSSOPage, TasksService } from '@alfresco/adf-testing';
|
||||
import { SettingsPage } from '../pages/adf/settingsPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { TasksCloudDemoPage } from '../pages/adf/demo-shell/process-services/tasksCloudDemoPage';
|
||||
import { AppListCloudPage } from '@alfresco/adf-testing';
|
||||
import { Util } from '../util/util';
|
||||
import { Tasks } from '../actions/APS-cloud/tasks';
|
||||
import { StringUtil } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
|
||||
describe('Task list cloud - selection', () => {
|
||||
@@ -35,7 +34,7 @@ describe('Task list cloud - selection', () => {
|
||||
const appListCloudComponent = new AppListCloudPage();
|
||||
const tasksCloudDemoPage = new TasksCloudDemoPage();
|
||||
|
||||
const tasksService: Tasks = new Tasks();
|
||||
let tasksService: TasksService;
|
||||
|
||||
let silentLogin;
|
||||
const simpleApp = 'simple-app';
|
||||
@@ -51,9 +50,13 @@ describe('Task list cloud - selection', () => {
|
||||
browser.ignoreSynchronization = true;
|
||||
loginSSOPage.loginSSOIdentityService(user, password);
|
||||
|
||||
await tasksService.init(user, password);
|
||||
const apiService = new ApiService('activiti', TestConfig.adf.url, TestConfig.adf.hostSso, 'BPM');
|
||||
await apiService.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||
|
||||
tasksService = new TasksService(apiService);
|
||||
|
||||
for (let i = 0; i < noOfTasks; i++) {
|
||||
response = await tasksService.createStandaloneTask(Util.generateRandomString(), simpleApp);
|
||||
response = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
||||
await tasksService.claimTask(response.entry.id, simpleApp);
|
||||
tasks.push(response.entry.name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user