Commit 7fffa61f authored by DJ Mountney's avatar DJ Mountney

Reset local storage between qa tests

This is not done by default as it is said to incur a performance hit,
paired with local storage not always being used by the site being
tested.
(https://github.com/teamcapybara/capybara/issues/1702#issuecomment-219483444)

GitLab uses localStorage, for things like remembering which tab you used
last (on the login page for example, between sign-in, ldap, and register)

Fixes: https://gitlab.com/gitlab-org/gitlab-qa/issues/303
parent 65d7ea10
...@@ -72,6 +72,7 @@ module QA ...@@ -72,6 +72,7 @@ module QA
Capybara::Selenium::Driver.new( Capybara::Selenium::Driver.new(
app, app,
browser: :chrome, browser: :chrome,
clear_local_storage: true,
desired_capabilities: capabilities, desired_capabilities: capabilities,
options: options options: options
) )
......
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