mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
improved e2e login api (#6248)
* improved e2e login api * throw error on missing profile
This commit is contained in:
@@ -54,7 +54,7 @@ describe('Aspect oriented config', () => {
|
||||
beforeAll(async () => {
|
||||
uploadActions = new UploadActions(apiService);
|
||||
|
||||
await apiService.getInstance().login(browser.params.testConfig.admin.email, browser.params.testConfig.admin.password);
|
||||
await apiService.loginWithProfile('admin');
|
||||
|
||||
try {
|
||||
await apiService.getInstance().core.customModelApi.createCustomModel('ACTIVE', modelOneName, modelOneName, modelOneName, modelOneName);
|
||||
@@ -68,7 +68,7 @@ describe('Aspect oriented config', () => {
|
||||
|
||||
acsUser = await usersActions.createUser();
|
||||
|
||||
await apiService.getInstance().login(acsUser.email, acsUser.password);
|
||||
await apiService.login(acsUser.email, acsUser.password);
|
||||
|
||||
const uploadedFile = await uploadActions.uploadFile(pngFileModel.location, pngFileModel.name, '-my-');
|
||||
|
||||
|
Reference in New Issue
Block a user