Commit 6bdca449 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-issue_sidebar_spec-master-transient-failure' into 'master'

Added find for collapsed sidebar before asserting

See merge request !11052
parents 40cc917a e3770101
...@@ -55,10 +55,12 @@ feature 'Issue Sidebar', feature: true do ...@@ -55,10 +55,12 @@ feature 'Issue Sidebar', feature: true do
# Resize the window # Resize the window
resize_screen_sm resize_screen_sm
# Make sure the sidebar is collapsed # Make sure the sidebar is collapsed
find(sidebar_selector)
expect(page).to have_css(sidebar_selector) expect(page).to have_css(sidebar_selector)
# Once is collapsed let's open the sidebard and reload # Once is collapsed let's open the sidebard and reload
open_issue_sidebar open_issue_sidebar
refresh refresh
find(sidebar_selector)
expect(page).to have_css(sidebar_selector) expect(page).to have_css(sidebar_selector)
# Restore the window size as it was including the sidebar # Restore the window size as it was including the sidebar
restore_window_size restore_window_size
......
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