summaryrefslogtreecommitdiff
path: root/spec/support/helpers/board_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/board_helpers.rb')
-rw-r--r--spec/support/helpers/board_helpers.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/support/helpers/board_helpers.rb b/spec/support/helpers/board_helpers.rb
index 6e145fed733..c4e69d06f52 100644
--- a/spec/support/helpers/board_helpers.rb
+++ b/spec/support/helpers/board_helpers.rb
@@ -4,6 +4,23 @@ module BoardHelpers
def click_card(card)
within card do
first('.board-card-number').click
+ wait_for_requests
+ end
+ end
+
+ def load_board(board_path)
+ visit board_path
+
+ wait_for_requests
+ end
+
+ def click_card_and_edit_label
+ click_card(card)
+
+ page.within(labels_select) do
+ click_button 'Edit'
+
+ wait_for_requests
end
end
end