mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-8891] remove e2e test data (#4179)
* [ACS-8886] enable excluded test * [ACS-8886] enable excluded test * [ACS-8886] test fix and added ticket to resovle * [ACS-8886] test reexcluded as valid fail * [ACS-8886] test enalbe * [ACS-8886] test fix for admin * ACS-8891-remove-test-data * ACS-8891-test-fix * ACS-8891-test-fix * test fix
This commit is contained in:
@@ -29,7 +29,7 @@ import { SiteBodyCreate } from '@alfresco/js-api';
|
||||
test.describe('from File Libraries', () => {
|
||||
const apiClientFactory = new ApiClientFactory();
|
||||
const username = `user-${Utils.random()}`;
|
||||
const siteName = `site-${Utils.random()}`;
|
||||
const siteName = `site-from-lib-${Utils.random()}`;
|
||||
const destination = `destFL-${Utils.random()}`;
|
||||
let destinationId: string;
|
||||
const xlsxLibraries = `xlsxFL-${Utils.random()}`;
|
||||
|
@@ -52,6 +52,8 @@ test.describe('viewer file', () => {
|
||||
let fileDocxId: string;
|
||||
let nodesApi: NodesApi;
|
||||
let trashcanApi: TrashcanApi;
|
||||
let siteActionsAdmin: SitesApi;
|
||||
let siteActionsUser: SitesApi;
|
||||
|
||||
test.beforeAll(async () => {
|
||||
test.setTimeout(timeouts.extendedTest);
|
||||
@@ -64,8 +66,8 @@ test.describe('viewer file', () => {
|
||||
trashcanApi = await TrashcanApi.initialize(username, username);
|
||||
const shareActions = await SharedLinksApi.initialize(username, username);
|
||||
const favoritesActions = await FavoritesPageApi.initialize(username, username);
|
||||
const siteActionsUser = await SitesApi.initialize(username, username);
|
||||
const siteActionsAdmin = await SitesApi.initialize('admin');
|
||||
siteActionsUser = await SitesApi.initialize(username, username);
|
||||
siteActionsAdmin = await SitesApi.initialize('admin');
|
||||
const fileActionApiAdmin = await FileActionsApi.initialize('admin');
|
||||
const node = await nodesApi.createFolder(randomFolderName);
|
||||
folderId = node.entry.id;
|
||||
@@ -97,7 +99,8 @@ test.describe('viewer file', () => {
|
||||
});
|
||||
|
||||
test.afterAll(async () => {
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed');
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed', siteActionsUser, [docLibSiteUserId]);
|
||||
await Utils.deleteNodesSitesEmptyTrashcan(nodesApi, trashcanApi, 'afterAll failed', siteActionsAdmin, [docLibId]);
|
||||
});
|
||||
|
||||
test('[C279269] Viewer opens on double clicking on a file from Personal Files', async ({ personalFiles }) => {
|
||||
|
Reference in New Issue
Block a user