diff options
-rw-r--r-- | spec/features/issues_spec.rb | 4 | ||||
-rw-r--r-- | spec/support/login_helpers.rb | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index d7f3f3a302c..f0daf081018 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -226,7 +226,7 @@ describe "Issues", feature: true do issue.save end - it 'shows assignee text' do + it "shows assignee text", js: true do logout login_with guest @@ -262,7 +262,7 @@ describe "Issues", feature: true do issue.save end - it 'shows milestone text' do + it "shows milestone text", js: true do logout login_with guest diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index 88e4d0419cb..238ac7c6611 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -19,7 +19,8 @@ module LoginHelpers Thread.current[:current_user] = user end + # Requires Javascript driver. def logout - page.find(:css, ".icon-signout").click rescue nil + page.find(:css, ".icon-signout").click end end |