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:
@@ -363,7 +363,7 @@ test.describe('Create file from template', () => {
|
||||
});
|
||||
|
||||
test.describe('File created from template on Personal Files Libraries', () => {
|
||||
const randomLibraryName = `playwright-library-${Utils.random()}`;
|
||||
const randomLibraryName = `playwright-library-c2-${Utils.random()}`;
|
||||
let sitesApi: SitesApi;
|
||||
|
||||
test.beforeAll(async () => {
|
||||
|
@@ -394,7 +394,7 @@ test.describe('Create folder from template', () => {
|
||||
});
|
||||
|
||||
test.describe('Folder created from template on Personal Files Libraries', () => {
|
||||
const randomLibraryName = `playwright-library-${Utils.random()}`;
|
||||
const randomLibraryName = `playwright-library-c1-${Utils.random()}`;
|
||||
let sitesApi: SitesApi;
|
||||
|
||||
test.beforeAll(async () => {
|
||||
|
@@ -58,8 +58,8 @@ test.describe('Create Libraries ', () => {
|
||||
const errorMessageNotPresent = 'Error message is not displayed';
|
||||
const tabKeyString = 'Tab';
|
||||
const username = `user-${Utils.random()}`;
|
||||
const commonLibraryName = `playwright-library-${Utils.random()}`;
|
||||
const commonTrashLibraryName = `playwright-library-${Utils.random()}`;
|
||||
const commonLibraryName = `playwright-library1-${Utils.random()}`;
|
||||
const commonTrashLibraryName = `playwright-library2-${Utils.random()}`;
|
||||
const createdLibrariesIds: string[] = [];
|
||||
|
||||
test.beforeAll(async () => {
|
||||
@@ -69,17 +69,18 @@ test.describe('Create Libraries ', () => {
|
||||
sitesApi = await SitesApi.initialize(username, username);
|
||||
nodesApi = await NodesApi.initialize(username, username);
|
||||
trashcanApi = await TrashcanApi.initialize(username, username);
|
||||
await sitesApi.createSite(commonLibraryName);
|
||||
createdLibrariesIds.push(commonLibraryName);
|
||||
await sitesApi.createSite(commonTrashLibraryName);
|
||||
await sitesApi.deleteSites([commonTrashLibraryName], false);
|
||||
const commonLibraryId = (await sitesApi.createSite(commonLibraryName)).entry.id;
|
||||
createdLibrariesIds.push(commonLibraryId);
|
||||
const commonTrashLibraryId = (await sitesApi.createSite(commonTrashLibraryName)).entry.id;
|
||||
createdLibrariesIds.push(commonTrashLibraryId);
|
||||
await sitesApi.deleteSites([commonTrashLibraryId], false);
|
||||
} catch (error) {
|
||||
console.error(`beforeAll failed : ${error}`);
|
||||
}
|
||||
});
|
||||
|
||||
test.beforeEach(async ({ myLibrariesPage, page }) => {
|
||||
randomLibraryName = `playwright-library-${Utils.random()}`;
|
||||
randomLibraryName = `playwright-library3-${Utils.random()}`;
|
||||
randomLibraryId = `libraryId-${Utils.random()}`;
|
||||
randomLibraryDescription = `libraryDescription-${Utils.random()}`;
|
||||
libraryDialog = myLibrariesPage.libraryDialog;
|
||||
|
Reference in New Issue
Block a user