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
This commit is contained in:
DJ Mountney 2018-07-25 11:15:02 -07:00
parent 65d7ea1043
commit 7fffa61f7f
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ module QA
Capybara::Selenium::Driver.new(
app,
browser: :chrome,
clear_local_storage: true,
desired_capabilities: capabilities,
options: options
)