debian-mirror-gitlab/spec/support/helpers/board_helpers.rb

19 lines
363 B
Ruby
Raw Normal View History

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
2018-03-17 18:26:18 +05:30
end
wait_for_sidebar
end
def wait_for_sidebar
# loop until the CSS transition is complete
Timeout.timeout(0.5) do
loop until evaluate_script('$(".right-sidebar").outerWidth()') == 290
end
end
end