Fix e2e test (#4981)

* fix core viewer

* increase rendition retry

* sso refresh before test

* general fix test

* try use last proxy

* avoid use proxy

* remove proxy

* fix setting tests

* fix share and sso test

* fix lint exclude

* fix sso

* fix some process services cloud e2e

* fix sso download

* exclude sso test

* fix cloud

* add logout content service test

* add logout core

* add logout search

* redefine global before all

* separate protracotr method

* try

* try multiple attempt before all

* add prefix group and users

* add prefix group and users

* add prefix group and users

* rexecute sso test

* fix process service visibility e2e

* split SSO login test

* fix SSO download

* fix SSO download

* fix some cloud issues

* fix some cloud issues

* fix some cloud issues

* share file fix cs

* fix cloud test
This commit is contained in:
Eugenio Romano
2019-08-08 17:52:45 +02:00
committed by GitHub
parent b7b251fe72
commit f04c135377
181 changed files with 1136 additions and 668 deletions

View File

@@ -38,7 +38,7 @@ const value = {
};
const checkbox = {
checkboxFieldValue : 'text1value',
checkboxFieldValue: 'text1value',
checkboxVariableField: 'variablefield',
checkboxFieldVariable: 'text1variable',
checkboxFieldField: 'text1text2',
@@ -64,7 +64,7 @@ describe('Process-Services - Visibility conditions', () => {
alfrescoJsApi = new AlfrescoApi({
provider: 'BPM',
hostBpm: browser.params.testConfig.adf.url
hostBpm: browser.params.testConfig.adf_aps.host
});
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
@@ -83,9 +83,9 @@ describe('Process-Services - Visibility conditions', () => {
done();
});
beforeEach(() => {
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
BrowserActions.getUrl(urlToNavigateTo);
await BrowserActions.getUrl(urlToNavigateTo);
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.formFields().checkFormIsDisplayed();
});
@@ -132,9 +132,13 @@ describe('Process-Services - Visibility conditions', () => {
it('[C311425] Should be able to see Checkbox widget when visibility condition refers to a field and another field', () => {
widget.textWidget().isWidgetVisible(widgets.textOneId);
expect(widget.checkboxWidget().isCheckboxHidden(checkbox.checkboxFieldField)).toBe(true);
expect(widget.checkboxWidget().isCheckboxDisplayed(checkbox.checkboxFieldField)).toBe(true);
widget.textWidget().setValue(widgets.textOneId, value.displayCheckbox);
expect(widget.checkboxWidget().isCheckboxHidden(checkbox.checkboxFieldField)).toBe(true);
widget.textWidget().setValue(widgets.textTwoId, value.displayCheckbox);
expect(widget.checkboxWidget().isCheckboxDisplayed(checkbox.checkboxFieldField)).toBe(true);
});