diff --git a/tests/playwright/pages/Dashboard/ProjectView/Metadata.ts b/tests/playwright/pages/Dashboard/ProjectView/Metadata.ts index b6ea7d2d81..91e8805232 100644 --- a/tests/playwright/pages/Dashboard/ProjectView/Metadata.ts +++ b/tests/playwright/pages/Dashboard/ProjectView/Metadata.ts @@ -8,7 +8,7 @@ export class MetaDataPage extends BasePage { super(dataSource.rootPage); } - get(options?: any) { + get() { return this.rootPage.locator('div.ant-modal-content'); } @@ -25,7 +25,6 @@ export class MetaDataPage extends BasePage { await this.get().click(); 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', { state: 'hidden', }); diff --git a/tests/playwright/pages/Dashboard/ProjectView/index.ts b/tests/playwright/pages/Dashboard/ProjectView/index.ts index 56633a38f9..bff160c808 100644 --- a/tests/playwright/pages/Dashboard/ProjectView/index.ts +++ b/tests/playwright/pages/Dashboard/ProjectView/index.ts @@ -56,11 +56,8 @@ export class ProjectViewPage extends BasePage { if (role.toLowerCase() === 'creator' || role.toLowerCase() === 'owner') { await this.tab_accessSettings.waitFor({ state: 'visible' }); 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_accessSettings.isVisible()).toBeFalsy(); - // expect(await this.tab_dataSources.isVisible()).toBeFalsy(); } await this.tables.verifyAccess(role);