Commit 21d276b1 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'remove-freeze-time-from-ee-sidebar-spec' into 'master'

Remove freeze_time from ee sidebar_spec.rb and remove wait_for_sidebar method

See merge request gitlab-org/gitlab!57082
parents bc8fbd0c c7166a4c
......@@ -21,10 +21,6 @@ RSpec.describe 'Issue Boards', :js do
let(:card1) { find('.board:nth-child(2)').find('.board-card:nth-child(2)') }
let(:card2) { find('.board:nth-child(2)').find('.board-card:nth-child(1)') }
around do |example|
freeze_time { example.run }
end
before do
stub_licensed_features(multiple_issue_assignees: true)
......
......@@ -5,14 +5,5 @@ module BoardHelpers
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment