Commit 0c529b4a authored by Robert Speicher's avatar Robert Speicher

Remove gitlab_sign_out_direct helper

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