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

Loading…
Cancel
Save