Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACS-6066 ] playwright e2e other permissions #3510

Merged
merged 12 commits into from
Nov 14, 2023
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
Loading