summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/features/merge_requests/user_posts_diff_notes_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/merge_requests/user_posts_diff_notes_spec.rb b/spec/features/merge_requests/user_posts_diff_notes_spec.rb
index c298f1927f1..0f31799f083 100644
--- a/spec/features/merge_requests/user_posts_diff_notes_spec.rb
+++ b/spec/features/merge_requests/user_posts_diff_notes_spec.rb
@@ -6,7 +6,8 @@ feature 'Merge requests > User posts diff notes', :js do
let(:project) { merge_request.source_project }
before do
- page.driver.set_cookie('sidebar_collapsed', 'true')
+ visit '/'
+ page.driver.browser.manage.add_cookie(name: 'sidebar_collapsed', value: 'true')
project.add_developer(user)
sign_in(user)