diff --git a/tests/playwright/pages/Dashboard/Grid/index.ts b/tests/playwright/pages/Dashboard/Grid/index.ts index 9819a567e2..3b944ba101 100644 --- a/tests/playwright/pages/Dashboard/Grid/index.ts +++ b/tests/playwright/pages/Dashboard/Grid/index.ts @@ -73,7 +73,7 @@ export class GridPage extends BasePage { } = {}) { const rowValue = value ?? `Row ${index}`; // wait for render to complete before count - await this.get().locator('.nc-grid-row').nth(0).waitFor({ state: 'attached' }); + if (index !== 0) await this.get().locator('.nc-grid-row').nth(0).waitFor({ state: 'attached' }); const rowCount = await this.get().locator('.nc-grid-row').count(); await this.get().locator('.nc-grid-add-new-cell').click(); diff --git a/tests/playwright/pages/Dashboard/TreeView.ts b/tests/playwright/pages/Dashboard/TreeView.ts index 23b21b9192..804cc1d2fe 100644 --- a/tests/playwright/pages/Dashboard/TreeView.ts +++ b/tests/playwright/pages/Dashboard/TreeView.ts @@ -82,7 +82,7 @@ export class TreeViewPage extends BasePage { await this.dashboard.waitForTabRender({ title, mode }); } else { await this.get().locator(`.nc-project-tree-tbl-${title}`).click(); - await this.rootPage.waitForTimeout(300); + await this.rootPage.waitForTimeout(1000); } } diff --git a/tests/playwright/tests/db/filters.spec.ts b/tests/playwright/tests/db/filters.spec.ts index cefd2c3dfa..7097b12744 100644 --- a/tests/playwright/tests/db/filters.spec.ts +++ b/tests/playwright/tests/db/filters.spec.ts @@ -651,11 +651,12 @@ test.describe('Filter Tests: Select based', () => { }); test('Filter: Single Select', async () => { - await selectBasedFilterTest('SingleSelect', 'jan', 'jan,feb,mar', ''); + // hack. jan inserted twice as in filter, toggling operation is not clearing value + await selectBasedFilterTest('SingleSelect', 'jan', 'jan,jan,feb,mar', ''); }); test('Filter: Multi Select', async () => { - await selectBasedFilterTest('MultiSelect', '', 'jan,feb,mar', 'jan,feb,mar'); + await selectBasedFilterTest('MultiSelect', '', 'jan,jan,feb,mar', 'jan,feb,mar'); }); }); @@ -1210,7 +1211,7 @@ test.describe('Filter Tests: Link to another record, Lookup, Rollup', () => { } test.beforeEach(async ({ page }) => { - context = await setup({ page, isEmptyProject: true }); + context = await setup({ page, isEmptyProject: false }); dashboard = new DashboardPage(page, context.project); toolbar = dashboard.grid.toolbar;