mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user