Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2018-07-25 21:15:02 +0300
committerDJ Mountney <david@twkie.net>2018-07-25 21:15:02 +0300
commit7fffa61f7fc6dc5b6d1aec58627be73770e16733 (patch)
tree7e668f0e87731fb4a950320a6660da4ef55da871 /qa
parent65d7ea10436e5c1ed3605cbcc4584cee2b0244c3 (diff)
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
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/runtime/browser.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb
index 0c8eca5229e..4c64270ce92 100644
--- a/qa/qa/runtime/browser.rb
+++ b/qa/qa/runtime/browser.rb
@@ -72,6 +72,7 @@ module QA
Capybara::Selenium::Driver.new(
app,
browser: :chrome,
+ clear_local_storage: true,
desired_capabilities: capabilities,
options: options
)