Commit 06d41721 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

modified clear_browser_session method to use the manage method for deleting cookies

parent 5072ecc6
...@@ -38,7 +38,7 @@ module CapybaraHelpers ...@@ -38,7 +38,7 @@ module CapybaraHelpers
# Simulate a browser restart by clearing the session cookie. # Simulate a browser restart by clearing the session cookie.
def clear_browser_session def clear_browser_session
page.driver.delete_cookie('_gitlab_session') page.driver.browser.manage.delete_cookie('_gitlab_session')
end end
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