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
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-04-26 18:51:05 +0300
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-06-12 13:40:18 +0300
commit96ed5a8bd78f90b0c7a8b044c4bd99e3af46dd71 (patch)
treedf517f916e5bfcbf1420c092ebf55ac3e1bab5ee /spec/support/capybara.rb
parent06e89d786c4ac67d9262c576b9aadb7d40dee9c2 (diff)
Upgrade to Capybara 3
Fix whitespace in specs because normalize_ws is slightly different from Capybara 2 behavior
Diffstat (limited to 'spec/support/capybara.rb')
-rw-r--r--spec/support/capybara.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb
index 14ce3c32e77..56ac208a025 100644
--- a/spec/support/capybara.rb
+++ b/spec/support/capybara.rb
@@ -53,9 +53,11 @@ Capybara.register_driver :chrome do |app|
)
end
+Capybara.server = :webrick
Capybara.javascript_driver = :chrome
Capybara.default_max_wait_time = timeout
Capybara.ignore_hidden_elements = true
+Capybara.default_normalize_ws = true
# Keep only the screenshots generated from the last failing test suite
Capybara::Screenshot.prune_strategy = :keep_last_run