diff --git a/e2e/process-services/form/apps-section.e2e.ts b/e2e/process-services/form/apps-section.e2e.ts index 76f681d276..d5b5754316 100644 --- a/e2e/process-services/form/apps-section.e2e.ts +++ b/e2e/process-services/form/apps-section.e2e.ts @@ -132,7 +132,9 @@ describe('Modify applications', () => { 'models': [firstApp.definition.models[0]], 'theme': 'theme-4', 'icon': 'glyphicon-user' } - }, 'publish': true + }, + 'publish': true, + 'force': true }; await appsApi.updateAppDefinition(appVersionToBeDeleted.id, appDefinition); diff --git a/lib/core/services/people-content.service.ts b/lib/core/services/people-content.service.ts index 5c4de985e5..5818471ed9 100644 --- a/lib/core/services/people-content.service.ts +++ b/lib/core/services/people-content.service.ts @@ -19,7 +19,7 @@ import { Injectable } from '@angular/core'; import { Observable, from, throwError } from 'rxjs'; import { AlfrescoApiService } from './alfresco-api.service'; import { catchError, map } from 'rxjs/operators'; -import { PersonEntry, PeopleApi, PersonBodyCreate, Pagination } from '@alfresco/js-api'; +import { PersonEntry, PeopleApi, PersonBodyCreate, Pagination, PersonBodyUpdate } from '@alfresco/js-api'; import { EcmUserModel } from '../models/ecm-user.model'; import { LogService } from './log.service'; @@ -117,6 +117,20 @@ export class PeopleContentService { ); } + /** + * Updates the person details + * @param personId The identifier of a person + * @param details The person details + * @param opts Optional parameters + * @returns Updated person model + */ + updatePerson(personId: string, details: PersonBodyUpdate, opts?: any): Observable { + return from(this.peopleApi.updatePerson(personId, details, opts)).pipe( + map((res: PersonEntry) => res?.entry), + catchError((error) => this.handleError(error)) + ); + } + async isContentAdmin(): Promise { if (!this.hasCheckedIsContentAdmin) { const user: PersonEntry = await this.getCurrentPerson().toPromise(); diff --git a/lib/testing/src/lib/protractor/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts b/lib/testing/src/lib/protractor/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts index 9b8a511492..fc1ed82532 100644 --- a/lib/testing/src/lib/protractor/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts +++ b/lib/testing/src/lib/protractor/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts @@ -113,6 +113,7 @@ export class EditProcessFilterCloudComponentPage { async setSortFilterDropDown(option) { await this.sortDropdown.selectDropdownOption(option); + await browser.sleep(500); } async getSortFilterDropDownValue(): Promise { @@ -120,7 +121,7 @@ export class EditProcessFilterCloudComponentPage { return BrowserActions.getText(sortLocator); } - async setOrderFilterDropDown(option) { + async setOrderFilterDropDown(option: string) { await this.orderDropdown.selectDropdownOption(option); await browser.sleep(1500); }