Browse Source

fix: sync corrections

pull/5537/head
Raju Udava 1 year ago
parent
commit
c38550c143
  1. 2
      tests/playwright/pages/Dashboard/Grid/index.ts
  2. 2
      tests/playwright/pages/Dashboard/TreeView.ts
  3. 7
      tests/playwright/tests/db/filters.spec.ts

2
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();

2
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);
}
}

7
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;

Loading…
Cancel
Save