Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: view search and share view pw test issue

Ramesh Mane9b5dd6326cbd
diff --git a/tests/playwright/pages/Dashboard/common/Toolbar/SearchData.ts b/tests/playwright/pages/Dashboard/common/Toolbar/SearchData.ts
index de9cb19fc5..29798c9ac1 100644
--- a/tests/playwright/pages/Dashboard/common/Toolbar/SearchData.ts
+++ b/tests/playwright/pages/Dashboard/common/Toolbar/SearchData.ts
@@ -16,7 +16,7 @@ export class ToolbarSearchDataPage extends BasePage {
async verify(query: string) {
const searchEnableBtn = await this.rootPage
- .waitForSelector('[data-testid="nc-global-search-show-input"]', { timeout: 1000 })
+ .waitForSelector('[data-testid="nc-global-search-show-input"]', { timeout: 2000 })
.catch(() => null);
if (searchEnableBtn) {
diff --git a/tests/playwright/pages/Dashboard/common/Topbar/index.ts b/tests/playwright/pages/Dashboard/common/Topbar/index.ts
index 0b2c5077f3..beb564b2b4 100644
--- a/tests/playwright/pages/Dashboard/common/Topbar/index.ts
+++ b/tests/playwright/pages/Dashboard/common/Topbar/index.ts
@@ -37,6 +37,7 @@ export class TopbarPage extends BasePage {
}
async clickShare() {
+ await this.rootPage.waitForTimeout(1000);
await this.btn_share.waitFor({ state: 'visible' });
await this.btn_share.click();
}