Browse Source

fix: LTAR test toast causing problem in focus

pull/6486/head
sreehari jayaraj 1 year ago
parent
commit
996bafef97
  1. 6
      tests/playwright/pages/Dashboard/ExpandedForm/index.ts

6
tests/playwright/pages/Dashboard/ExpandedForm/index.ts

@ -125,10 +125,12 @@ export class ExpandedFormPage extends BasePage {
});
}
await this.get().press('Escape');
await this.get().waitFor({ state: 'hidden' });
await this.verifyToast({ message: `updated successfully.` });
await this.rootPage.locator('[data-testid="grid-load-spinner"]').waitFor({ state: 'hidden' });
// removing focus from toast
await this.rootPage.locator('.nc-modal').click();
await this.get().press('Escape');
await this.get().waitFor({ state: 'hidden' });
}
// check for the expanded form header table name

Loading…
Cancel
Save