[ADF-4976] Fix cloud ps e2e errors (#5195)

* fix cloud ps e2e errors

* fix lint

* fix ps test add 200ms for animation

* Update processListPage.ts
This commit is contained in:
Eugenio Romano
2019-10-28 09:47:30 +00:00
committed by Denys Vuika
parent 6119ce83de
commit 450b20eca4
7 changed files with 64 additions and 31 deletions

View File

@@ -17,6 +17,7 @@
import { browser, by, element, ElementArrayFinder, ElementFinder, protractor } from 'protractor';
import { BrowserVisibility } from '../utils/browser-visibility';
import { Logger } from './logger';
export class BrowserActions {
@@ -30,7 +31,8 @@ export class BrowserActions {
await browser.executeScript(`arguments[0].scrollIntoView();`, elementFinder);
await browser.executeScript(`arguments[0].click();`, elementFinder);
} catch (jsErr) {
throw jsErr;
Logger.error(`click error element ${elementFinder}`);
throw jsErr;
}
}
}

View File

@@ -45,4 +45,35 @@ export class FormCloudService {
}
async getForms(appName: string): Promise<any[]> {
try {
const path = '/' + appName + '/form/v1/forms';
const method = 'GET';
const queryParams = {}, postBody = {};
return this.api.performBpmOperation(path, method, queryParams, postBody);
} catch (error) {
Logger.error('Get forms error ', error.message);
}
return [];
}
async getIdByFormName(appName: string, formName: string): Promise<string> {
const forms = await this.getForms(appName);
const formEntry = forms.find((currentForm) => {
return currentForm.formRepresentation.name === formName;
});
if (formEntry.formRepresentation) {
return formEntry.formRepresentation.id;
}
return null;
}
}

View File

@@ -64,44 +64,34 @@ export const ACTIVITI_CLOUD_APPS: any = {
},
forms: {
tabVisibilityFields: {
name: 'tabvisibilitywithfields',
id: 'form-26b01063-4fb0-455f-b3ba-90172e013678'
name: 'tabvisibilitywithfields'
},
tabVisibilityVars: {
name: 'tabvisibilitywithvars',
id: 'form-7bf363d2-83c9-4b00-853e-373d0d59963c'
name: 'tabvisibilitywithvars'
},
usertaskform: {
name: 'usertaskform',
id: 'form-056ba4aa-90c2-48eb-ba39-7013d732503b'
name: 'usertaskform'
},
dropdownform: {
name: 'dropdownform',
id: 'form-5688156c-150c-43bc-83cb-617fd045202a'
name: 'dropdownform'
},
formVisibility: {
name: 'form-visibility',
id: 'form-30418ed3-2beb-464f-ad51-4ca5da02f6d8'
name: 'form-visibility'
},
multilingualform: {
name: 'multilingualform',
id: 'form-fb8f1628-82d9-4e0e-b032-bf02598e7d24'
name: 'multilingualform'
},
inputform: {
name: 'inputform',
id: 'form-d69fd470-b67a-4e7c-bb70-8979fc10374f'
name: 'inputform'
},
outputform: {
name: 'outputform',
id: 'form-eeb2174f-b25a-4386-bf73-bda4de195eee'
name: 'outputform'
},
exclusiveconditionform: {
name: 'exclusive-condition-form',
id: 'form-03f56f41-c9a7-430a-a713-fc37bab070c1'
name: 'exclusive-condition-form'
},
uploadlocalfileform: {
name: 'upload-localfile-form',
id: 'form-f4f02bc1-9cb6-43d6-9328-385db73e2762'
name: 'upload-localfile-form'
}
},
security: [