Browse Source

test: extract title from base in context

pull/8708/head
Pranav C 2 weeks ago
parent
commit
652a1676d8
  1. 2
      packages/nc-gui/lib/acl.ts
  2. 4
      packages/nocodb/src/utils/acl.ts
  3. 4
      tests/playwright/tests/db/general/sourceRestrictions.spec.ts

2
packages/nc-gui/lib/acl.ts

@ -143,8 +143,6 @@ export const sourceRestrictions = {
csvImport: true,
jsonImport: true,
excelImport: true,
fieldAdd: true,
fieldAlter: true,
duplicateColumn: true,
duplicateModel: true,
},

4
packages/nocodb/src/utils/acl.ts

@ -457,9 +457,6 @@ export const sourceRestrictions = {
tableCreate: true,
tableDelete: true,
tableUpdate: true,
// columnAdd: true,
// columnDelete: true,
// columnUpdate: true,
columnBulk: true,
},
[SourceRestriction.DATA_READONLY]: {
@ -479,5 +476,4 @@ export const sourceRestrictions = {
},
};
export default rolePermissions;

4
tests/playwright/tests/db/general/sourceRestrictions.spec.ts

@ -29,7 +29,7 @@ test.describe('Source Restrictions', () => {
});
test('Readonly data source', async () => {
await dashboard.treeView.openProjectSourceSettings({ title: context.defaultProjectTitle, context });
await dashboard.treeView.openProjectSourceSettings({ title: context.base.title, context });
await settingsPage.selectTab({ tab: 'dataSources' });
await dashboard.rootPage.waitForTimeout(300);
@ -56,7 +56,7 @@ test.describe('Source Restrictions', () => {
});
test('Readonly schema source', async () => {
await dashboard.treeView.openProjectSourceSettings({ title: context.defaultProjectTitle, context });
await dashboard.treeView.openProjectSourceSettings({ title: context.base.title, context });
await settingsPage.selectTab({ tab: 'dataSources' });
await dashboard.rootPage.waitForTimeout(300);

Loading…
Cancel
Save