Browse Source

feat(playwright): add logic to cater delete modal in hook

pull/5317/head
Wing-Kam Wong 2 years ago
parent
commit
9a4b9a7f1e
  1. 2
      tests/playwright/pages/Dashboard/WebhookForm/index.ts

2
tests/playwright/pages/Dashboard/WebhookForm/index.ts

@ -124,9 +124,11 @@ export class WebhookFormPage extends BasePage {
await this.toolbar.actions.click('Webhooks');
await this.get().locator(`.nc-hook-delete-icon`).nth(index).click();
await this.rootPage.locator('.ant-modal-confirm-confirm button:has-text("Yes")').click();
await this.verifyToast({ message: 'Hook deleted successfully' });
// click escape to close the drawer
await this.get().click();
await this.get().press('Escape');
}

Loading…
Cancel
Save