[ACS-5866] authentication playwright tests (#3391)

* viewer action files e2e migration

* viewer action files e2e remove comment

* review code fix

* [ci:force]

* [ACS-5650]viewer test with new user

* remove commented code

* login and logout playwright test

* Update error message login.spec.ts
This commit is contained in:
Akash Rathod
2023-08-18 18:49:46 +02:00
committed by GitHub
parent 9f1b8a0ac6
commit f8a30f3706
14 changed files with 325 additions and 238 deletions

View File

@@ -163,4 +163,15 @@ export class ApiClientFactory {
return null;
}
}
async changePassword(username: string, newPassword: string): Promise<PersonEntry> {
const peopleApi = new PeopleApi(this.alfrescoApi);
try {
return peopleApi.updatePerson(username, { password: newPassword });
} catch (error) {
logger.error('[API Client Factory] changePassword failed : ', error);
return null;
}
}
}