Commit e3770101 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Added find for collapsed sidebar before asserting

parent 185fd98f
...@@ -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