Browse Source

test: role verification test corrections

nc-refactor/ds
Pranav C 1 month ago
parent
commit
98c95a5815
  1. 6
      tests/playwright/pages/Dashboard/ProjectView/index.ts

6
tests/playwright/pages/Dashboard/ProjectView/index.ts

@ -54,13 +54,13 @@ export class ProjectViewPage extends BasePage {
expect(await this.tab_allTables.isVisible()).toBeTruthy();
if (role.toLowerCase() === 'creator' || role.toLowerCase() === 'owner') {
await this.tab_dataSources.waitFor({ state: 'visible' });
await this.tab_accessSettings.waitFor({ state: 'visible' });
expect(await this.tab_dataSources.isVisible()).toBeTruthy();
expect(await this.tab_accessSettings.isVisible()).toBeTruthy();
// await this.tab_dataSources.waitFor({ state: 'visible' });
// expect(await this.tab_dataSources.isVisible()).toBeTruthy();
} else {
expect(await this.tab_dataSources.isVisible()).toBeFalsy();
expect(await this.tab_accessSettings.isVisible()).toBeFalsy();
// expect(await this.tab_dataSources.isVisible()).toBeFalsy();
}
await this.tables.verifyAccess(role);

Loading…
Cancel
Save