Skip to content

Commit

Permalink
[ACS-6066 ] playwright e2e other permissions (#3510)
Browse files Browse the repository at this point in the history
* ACS-6066 other permissions test

* ACS-6066 other permissions test remove protractor

* ACS-6066 other permissions test remove protracto

* ACS-6066 other permissions remove code Duplicate

* ACS-6066 other permissions rebase

* ACS-6066 other permissions code cleanup

* code fix and remove protractor test

* review code fix

* review code fix

* fail test code fix
  • Loading branch information
akashrathod28 authored Nov 14, 2023
1 parent 57ac20a commit 4877a05
Show file tree
Hide file tree
Showing 14 changed files with 440 additions and 418 deletions.
3 changes: 3 additions & 0 deletions e2e/playwright/actions/tsconfig.e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"target": "es2017",
"types": ["jasmine", "jasminewd2", "node", "@playwright/test"],
"skipLibCheck": true,
"paths": {
"@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"]
}
},
"exclude": ["node_modules"]
}
3 changes: 3 additions & 0 deletions e2e/playwright/authentication/tsconfig.e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"target": "es2017",
"types": ["jasmine", "jasminewd2", "node", "@playwright/test"],
"skipLibCheck": true,
"paths": {
"@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"]
}
},
"exclude": ["node_modules"]
}
3 changes: 3 additions & 0 deletions e2e/playwright/folder-rules/tsconfig.e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"target": "es2017",
"types": ["jasmine", "jasminewd2", "node", "@playwright/test"],
"skipLibCheck": true,
"paths": {
"@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"]
}
},
"exclude": ["node_modules"]
}
6 changes: 4 additions & 2 deletions e2e/playwright/navigation/src/tests/breadcrumb.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ test.describe('viewer action file', () => {
const fileName1 = `file1-${Utils.random()}.txt`;

const siteName = `site-${Utils.random()}`;
let docLibId: string;
const parentFromSite = `parent-in-site-${Utils.random()}`;
let parentFromSiteId: string;
const subFolder1FromSite = `subFolder1-in-site-${Utils.random()}`;
Expand All @@ -62,15 +63,16 @@ test.describe('viewer action file', () => {
folder1Id = (await nodesApiAction.createFolder(folder1, parent2Id)).entry.id;

await sitesApiAction.createSite(siteName, Site.VisibilityEnum.PUBLIC);
const docLibId = await sitesApiAction.getDocLibId(siteName);
docLibId = await sitesApiAction.getDocLibId(siteName);
parentFromSiteId = (await nodesApiAction.createFolder(parentFromSite, docLibId)).entry.id;
subFolder1FromSiteId = (await nodesApiAction.createFolder(subFolder1FromSite, parentFromSiteId)).entry.id;
subFolder2FromSiteId = (await nodesApiAction.createFolder(subFolder2FromSite, subFolder1FromSiteId)).entry.id;
await nodesApiAction.createFile(fileName1FromSite, subFolder2FromSiteId);
});

test.afterAll(async ({ nodesApiAction }) => {
test.afterAll(async ({ nodesApiAction, sitesApiAction }) => {
await nodesApiAction.deleteNodes([parentId, parent2Id], true);
await sitesApiAction.deleteSites([docLibId]);
});

test('[C260964] Personal Files breadcrumb main node', async ({ personalFiles }) => {
Expand Down
3 changes: 3 additions & 0 deletions e2e/playwright/navigation/tsconfig.e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"target": "es2017",
"types": ["jasmine", "jasminewd2", "node", "@playwright/test"],
"skipLibCheck": true,
"paths": {
"@alfresco/playwright-shared": ["../../../projects/aca-playwright-shared/src/index.ts"]
}
},
"exclude": ["node_modules"]
}
Loading

0 comments on commit 4877a05

Please sign in to comment.