Browse Source

test: role verification test corrections

pull/8510/head
Pranav C 6 months 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(); expect(await this.tab_allTables.isVisible()).toBeTruthy();
if (role.toLowerCase() === 'creator' || role.toLowerCase() === 'owner') { if (role.toLowerCase() === 'creator' || role.toLowerCase() === 'owner') {
await this.tab_dataSources.waitFor({ state: 'visible' });
await this.tab_accessSettings.waitFor({ state: 'visible' }); await this.tab_accessSettings.waitFor({ state: 'visible' });
expect(await this.tab_dataSources.isVisible()).toBeTruthy();
expect(await this.tab_accessSettings.isVisible()).toBeTruthy(); expect(await this.tab_accessSettings.isVisible()).toBeTruthy();
// await this.tab_dataSources.waitFor({ state: 'visible' });
// expect(await this.tab_dataSources.isVisible()).toBeTruthy();
} else { } else {
expect(await this.tab_dataSources.isVisible()).toBeFalsy();
expect(await this.tab_accessSettings.isVisible()).toBeFalsy(); expect(await this.tab_accessSettings.isVisible()).toBeFalsy();
// expect(await this.tab_dataSources.isVisible()).toBeFalsy();
} }
await this.tables.verifyAccess(role); await this.tables.verifyAccess(role);

Loading…
Cancel
Save