Commit 2d93b330 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix flaky spec due to dropdown position

parent 501050d8
......@@ -30,8 +30,12 @@ describe 'label issues', :js do
click_link 'Create group label'
fill_in 'new_label_name', with: 'test label'
first('.suggest-colors-dropdown a').click
click_button 'Create'
wait_for_requests
# We need to hover before clicking to trigger
# dropdown repositioning so that the click isn't flaky
create_button = find_button('Create')
create_button.hover
create_button.click
end
page.within '.labels' do
......
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