Skip to content

Commit

Permalink
[ACS-5014] Updated import of logger from @alfresco/adf-cli to @alfres…
Browse files Browse the repository at this point in the history
…co/adf-testing
  • Loading branch information
swapnil-verma-gl committed Nov 21, 2023
1 parent a51b40d commit 39643e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions e2e/playwright/copy-move-actions/src/tests/copy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import { ApiClientFactory, test, Utils, PersonalFilesPage, NodesApi, LoginPage } from '@alfresco/playwright-shared';
import { expect } from '@playwright/test';
import { logger } from '@alfresco/adf-cli/scripts/logger';
import { Logger } from '@alfresco/adf-testing';

test.describe('Copy actions', () => {
let nodesApi: NodesApi;
Expand All @@ -47,15 +47,15 @@ test.describe('Copy actions', () => {
await apiClientFactory.createUser({ username });
nodesApi = await NodesApi.initialize(username, username);
} catch (error) {
logger.error(`beforeAll failed : ${error}`);
Logger.error(`beforeAll failed : ${error}`);
}
});

test.afterAll(async ({ nodesApiAction }) => {
try {
await nodesApiAction.deleteCurrentUserNodes();
} catch (error) {
logger.error(`afterAll failed : ${error}`);
Logger.error(`afterAll failed : ${error}`);
}
});

Expand All @@ -81,7 +81,7 @@ test.describe('Copy actions', () => {

await personalFiles.navigate();
} catch (error) {
logger.error(`beforeEach failed : ${error}`);
Logger.error(`beforeEach failed : ${error}`);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

import { ApiClientFactory, MyLibrariesPage, NodesApi, SitesApi, test, Utils } from '@alfresco/playwright-shared';
import { expect } from '@playwright/test';
import { logger } from '@alfresco/adf-cli/scripts/logger';
import { Site } from '@alfresco/js-api';
import { Logger } from '@alfresco/adf-testing';

test.describe('Copy Move actions', () => {
let nodesApi: NodesApi;
Expand Down Expand Up @@ -64,7 +64,7 @@ test.describe('Copy Move actions', () => {
await nodesApi.createFile(sourceFile, docLibId);
await nodesApi.createFolder(destinationFolder, docLibId);
} catch (error) {
logger.error(`beforeAll failed : ${error}`);
Logger.error(`beforeAll failed : ${error}`);
}
});

Expand All @@ -73,7 +73,7 @@ test.describe('Copy Move actions', () => {
await nodesApi.deleteCurrentUserNodes();
await sitesApi.deleteSites([siteId]);
} catch (error) {
logger.error(`afterAll failed : ${error}`);
Logger.error(`afterAll failed : ${error}`);
}
});

Expand Down
8 changes: 4 additions & 4 deletions e2e/playwright/copy-move-actions/src/tests/move.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import { ApiClientFactory, test, Utils, PersonalFilesPage, NodesApi, LoginPage } from '@alfresco/playwright-shared';
import { expect } from '@playwright/test';
import { logger } from '@alfresco/adf-cli/scripts/logger';
import { Logger } from '@alfresco/adf-testing';

test.describe('Move actions', () => {
let nodesApi: NodesApi;
Expand All @@ -47,15 +47,15 @@ test.describe('Move actions', () => {
await apiClientFactory.createUser({ username });
nodesApi = await NodesApi.initialize(username, username);
} catch (error) {
logger.error(`beforeAll failed : ${error}`);
Logger.error(`beforeAll failed : ${error}`);
}
});

test.afterAll(async ({ nodesApiAction }) => {
try {
await nodesApiAction.deleteCurrentUserNodes();
} catch (error) {
logger.error(`afterAll failed : ${error}`);
Logger.error(`afterAll failed : ${error}`);
}
});

Expand All @@ -81,7 +81,7 @@ test.describe('Move actions', () => {

await personalFiles.navigate();
} catch (error) {
logger.error(`beforeEach failed : ${error}`);
Logger.error(`beforeEach failed : ${error}`);
}
});

Expand Down

0 comments on commit 39643e4

Please sign in to comment.