Browse Source

test: remove unused param

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/8510/head
Pranav C 7 months ago
parent
commit
a966cca278
  1. 3
      tests/playwright/pages/Dashboard/ProjectView/Metadata.ts
  2. 3
      tests/playwright/pages/Dashboard/ProjectView/index.ts

3
tests/playwright/pages/Dashboard/ProjectView/Metadata.ts

@ -8,7 +8,7 @@ export class MetaDataPage extends BasePage {
super(dataSource.rootPage); super(dataSource.rootPage);
} }
get(options?: any) { get() {
return this.rootPage.locator('div.ant-modal-content'); return this.rootPage.locator('div.ant-modal-content');
} }
@ -25,7 +25,6 @@ export class MetaDataPage extends BasePage {
await this.get().click(); await this.get().click();
await this.rootPage.keyboard.press('Escape'); await this.rootPage.keyboard.press('Escape');
await this.rootPage.keyboard.press('Escape'); await this.rootPage.keyboard.press('Escape');
// await this.get().toHaveLength(0) // .waitFor({ state: 'detached' });
await this.rootPage.waitForSelector('div.ant-modal-content', { await this.rootPage.waitForSelector('div.ant-modal-content', {
state: 'hidden', state: 'hidden',
}); });

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

@ -56,11 +56,8 @@ export class ProjectViewPage extends BasePage {
if (role.toLowerCase() === 'creator' || role.toLowerCase() === 'owner') { if (role.toLowerCase() === 'creator' || role.toLowerCase() === 'owner') {
await this.tab_accessSettings.waitFor({ state: 'visible' }); await this.tab_accessSettings.waitFor({ state: 'visible' });
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_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