Added find for collapsed sidebar before asserting

This commit is contained in:
Luke "Jared" Bennett 2017-05-03 02:37:01 +01:00
parent 185fd98fd4
commit e377010123
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
1 changed files with 2 additions and 0 deletions

View File

@ -55,10 +55,12 @@ feature 'Issue Sidebar', feature: true do
# Resize the window
resize_screen_sm
# Make sure the sidebar is collapsed
find(sidebar_selector)
expect(page).to have_css(sidebar_selector)
# Once is collapsed let's open the sidebard and reload
open_issue_sidebar
refresh
find(sidebar_selector)
expect(page).to have_css(sidebar_selector)
# Restore the window size as it was including the sidebar
restore_window_size