diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb
index d7f3f3a302c9c04f5fa10f2cec8e107af0c239d4..f0daf081018ed376a06f83e338e226fda9c2788b 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 88e4d0419cb0210eafa5f78487b8b87beb59d602..238ac7c6611a4637568562e6a17639ba6aea0f7b 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