2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module BoardHelpers
|
|
|
|
def click_card(card)
|
|
|
|
within card do
|
2018-11-08 19:23:39 +05:30
|
|
|
first('.board-card-number').click
|
2021-06-08 01:23:25 +05:30
|
|
|
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
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|