ACS-5870-playwright test for application (#3398)

* ACS-5870-playwright test for application

* fix for failing test

* fix for failing test

* fix for login secario test

* fix for login test with newuser login

* Update test username general.spec.ts
This commit is contained in:
Akash Rathod
2023-08-28 17:26:13 +02:00
committed by GitHub
parent aec6852672
commit ad36ed891b
5 changed files with 72 additions and 203 deletions

View File

@@ -152,6 +152,16 @@ export class ApiClientFactory {
}
}
async loginUser(user: PersonModel) {
let e: any;
try {
e = await this.alfrescoApi.login(user.username, user.password);
} catch (error) {
logger.error(`[API Client Factory] Log in user ${user.username} failed ${e}`);
throw error;
}
}
async createUser(user: PersonModel): Promise<PersonEntry> {
const person = new Person(user);
const peopleApi = new PeopleApi(this.alfrescoApi);