Commit 6050d8f4 authored by Robert Speicher's avatar Robert Speicher

Remove gitlab_sign_out_direct helper

parent 30718354
...@@ -399,7 +399,7 @@ feature 'Jobs', :feature do ...@@ -399,7 +399,7 @@ feature 'Jobs', :feature do
job.cancel! job.cancel!
project.update(visibility_level: Gitlab::VisibilityLevel::PUBLIC) project.update(visibility_level: Gitlab::VisibilityLevel::PUBLIC)
gitlab_sign_out_direct sign_out(:user)
sign_in(create(:user)) sign_in(create(:user))
visit namespace_project_job_path(project.namespace, project, job) visit namespace_project_job_path(project.namespace, project, job)
end end
......
...@@ -35,13 +35,8 @@ module LoginHelpers ...@@ -35,13 +35,8 @@ module LoginHelpers
def gitlab_sign_out def gitlab_sign_out
find(".header-user-dropdown-toggle").click find(".header-user-dropdown-toggle").click
click_link "Sign out" click_link "Sign out"
# check the sign_in button
expect(page).to have_button('Sign in')
end
# Logout without JavaScript driver expect(page).to have_button('Sign in')
def gitlab_sign_out_direct
page.driver.submit :delete, '/users/sign_out', {}
end end
private private
......
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