Fix failing spec.
This commit is contained in:
parent
714f7201d3
commit
c589029667
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue