Browse Source

test: scroll to erd node if out of viewport

pull/9499/head
Pranav C 2 months ago
parent
commit
698f1f4f7a
  1. 2
      tests/playwright/pages/Dashboard/Details/ErdPage.ts

2
tests/playwright/pages/Dashboard/Details/ErdPage.ts

@ -39,6 +39,8 @@ export class ErdPage extends BasePage {
columnName?: string;
columnNameShouldNotExist?: string;
}) {
await this.get().locator(`.nc-erd-table-node-${tableName}`).scrollIntoViewIfNeeded();
await this.get().locator(`.nc-erd-table-node-${tableName}`).waitFor({ state: 'visible' });
if (columnName) {
await this.get().locator(`.nc-erd-table-node-${tableName}-column-${columnName}`).waitFor({ state: 'visible' });

Loading…
Cancel
Save