Merge branch 'fix-issue_sidebar_spec-failure-and-remove-sleep' into 'master'

Fixed issue_sidebar_spec.rb click as true click cannot hit the right element and removed sleep

See merge request !11064
This commit is contained in:
Sean McGivern 2017-05-03 15:47:45 +00:00
commit f31cf06d05

View file

@ -152,9 +152,7 @@ feature 'Issue Sidebar', feature: true do
end
def open_issue_sidebar
page.within('aside.right-sidebar.right-sidebar-collapsed') do
find('.js-sidebar-toggle').click
sleep 1
end
find('aside.right-sidebar.right-sidebar-collapsed .js-sidebar-toggle').click
find('aside.right-sidebar.right-sidebar-expanded')
end
end