refactor(test): Cleanup and added await logic for click filter

This commit is contained in:
Muhammed Mustafa
2022-11-14 18:22:48 +05:30
parent 6ebb80ddb7
commit 8308f8a3f2
18 changed files with 171 additions and 125 deletions

View File

@@ -23,7 +23,6 @@ export class WebhookFormPage extends BasePage {
return this.dashboard.get().locator(`.nc-drawer-webhook-body`);
}
// todo: Removing opening webhook drawer logic as it belongs to `Toolbar` page
async create({ title, event, url = 'http://localhost:9090/hook' }: { title: string; event: string; url?: string }) {
await this.toolbar.clickActions();
await this.toolbar.actions.click('Webhooks');