summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-05-03 10:56:24 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-05-03 10:56:24 +0000
commit6bdca4493761dfe9259f869a51b6887063fcedd3 (patch)
tree6f0d5eace18523df852baa18d728952cd7ff0779
parent40cc917a9c07263db062c03f62c8056ed40197bd (diff)
parente377010123fb66589a4957c6b799a0aa461d7b0c (diff)
downloadgitlab-ce-6bdca4493761dfe9259f869a51b6887063fcedd3.tar.gz
Merge branch 'fix-issue_sidebar_spec-master-transient-failure' into 'master'
Added find for collapsed sidebar before asserting See merge request !11052
-rw-r--r--spec/features/issues/issue_sidebar_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/features/issues/issue_sidebar_spec.rb b/spec/features/issues/issue_sidebar_spec.rb
index baacd7edb86..8589945ab74 100644
--- a/spec/features/issues/issue_sidebar_spec.rb
+++ b/spec/features/issues/issue_sidebar_spec.rb
@@ -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