f0391c2517
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
18 lines
363 B
Ruby
18 lines
363 B
Ruby
# frozen_string_literal: true
|
|
|
|
module BoardHelpers
|
|
def click_card(card)
|
|
within card do
|
|
first('.board-card-number').click
|
|
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
|