mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-4288] Fix API errors from logs (#2006)
* Add API login in afterAll - part 1 * viewer,infoDrawer,extensions - afterAll API login * deleteActions - afterAll API login * Improve before and after methods * add Promise type to methods - part1 * remove unneeded done() method and add try-catch * delete wrong import * Login through API * small change over log errors * small improvement over the logs
This commit is contained in:
@@ -81,9 +81,7 @@ describe('Download', () => {
|
||||
const userActions = new UserActions();
|
||||
|
||||
beforeAll(async (done) => {
|
||||
await adminApiActions.login();
|
||||
await adminApiActions.createUser({ username });
|
||||
await userActions.login(username, username);
|
||||
|
||||
initialRecentTotalItems = await apis.user.search.getTotalItems(username);
|
||||
|
||||
@@ -108,6 +106,7 @@ describe('Download', () => {
|
||||
|
||||
await apis.user.search.waitForApi(username, { expect: initialRecentTotalItems + 10 });
|
||||
|
||||
await userActions.login(username, username);
|
||||
await userActions.shareNodes([fileShared1Id, fileShared2Id]);
|
||||
await apis.user.shared.waitForFilesToBeShared([fileShared1Id, fileShared2Id]);
|
||||
|
||||
@@ -121,6 +120,7 @@ describe('Download', () => {
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await userActions.login(username, username);
|
||||
await userActions.deleteNodes([parentId]);
|
||||
await userActions.emptyTrashcan();
|
||||
done();
|
||||
|
Reference in New Issue
Block a user