From a0540746573d5a59b40bcfe34d6a84f8428624a9 Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Thu, 6 Dec 2018 20:43:49 +0530 Subject: [PATCH] feat(form.js): Add click_workflow_button helper Closes https://github.com/frappe/video/issues/20 --- lib/form.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/form.js b/lib/form.js index bbf530d..39079d2 100644 --- a/lib/form.js +++ b/lib/form.js @@ -207,6 +207,10 @@ export default { async click_form_menu() { await this.click_element('.btn-default', 'Menu'); }, + + async click_workflow_button(text) { + await this.click_element('.btn-primary', text); + }, async click_toolbar_button(text) { let button_text, dropdown_item;