Browse Source

test: disable shared base editor test

pull/9678/head
Raju Udava 1 month ago
parent
commit
98e6a00692
  1. 58
      tests/playwright/tests/db/features/baseShare.spec.ts

58
tests/playwright/tests/db/features/baseShare.spec.ts

@ -68,35 +68,35 @@ test.describe('Shared base', () => {
let url = ''; let url = '';
// share button visible only if a table is opened // share button visible only if a table is opened
await dashboard.treeView.openTable({ title: 'Country' }); await dashboard.treeView.openTable({ title: 'Country' });
if (!isEE()) { // if (!isEE()) {
url = await dashboard.grid.topbar.getSharedBaseUrl({ role: 'editor', enableSharedBase: true }); // url = await dashboard.grid.topbar.getSharedBaseUrl({ role: 'editor', enableSharedBase: true });
//
await dashboard.rootPage.waitForTimeout(2000); // await dashboard.rootPage.waitForTimeout(2000);
// access shared base link // // access shared base link
await dashboard.signOut(); // await dashboard.signOut();
await dashboard.rootPage.waitForTimeout(2000); // await dashboard.rootPage.waitForTimeout(2000);
// todo: Move this to a page object // // todo: Move this to a page object
await dashboard.rootPage.goto(url); // await dashboard.rootPage.goto(url);
//
await roleTest('editor'); // await roleTest('editor');
//
await loginPage.signIn({ // await loginPage.signIn({
email: `user-${process.env.TEST_PARALLEL_INDEX}@nocodb.com`, // email: `user-${process.env.TEST_PARALLEL_INDEX}@nocodb.com`,
password: getDefaultPwd(), // password: getDefaultPwd(),
withoutPrefix: true, // withoutPrefix: true,
}); // });
//
await dashboard.rootPage.waitForTimeout(1000); // await dashboard.rootPage.waitForTimeout(1000);
//
if (isEE()) { // if (isEE()) {
await dashboard.grid.workspaceMenu.switchWorkspace({ // await dashboard.grid.workspaceMenu.switchWorkspace({
workspaceTitle: context.workspace.title, // workspaceTitle: context.workspace.title,
}); // });
} // }
//
await dashboard.treeView.openProject({ title: context.base.title, context }); // await dashboard.treeView.openProject({ title: context.base.title, context });
await dashboard.treeView.openTable({ title: 'Country' }); // await dashboard.treeView.openTable({ title: 'Country' });
} // }
url = await dashboard.grid.topbar.getSharedBaseUrl({ role: 'viewer', enableSharedBase: false }); url = await dashboard.grid.topbar.getSharedBaseUrl({ role: 'viewer', enableSharedBase: false });

Loading…
Cancel
Save