Commit c5890296 authored by Ciro Santilli's avatar Ciro Santilli

Fix failing spec.

parent 714f7201
......@@ -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
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment