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:
authorSean McGivern <sean@gitlab.com>2016-07-06 14:36:39 +0300
committerSean McGivern <sean@gitlab.com>2016-07-08 15:53:17 +0300
commit90a6be190feea0966e9ed9b6731d930bcff32d68 (patch)
treec653fca853b4edfccdb078deca56f652f7b2768a /spec/support/capybara_helpers.rb
parentb8d3016abbfeaa0658216a9d21138435f2379e38 (diff)
Ensure only renderable text diffs are collapsed
Other diffs (those that are too large to render anyway, image diffs, diffs suppressed by .gitattributes) should be rendered immediately.
Diffstat (limited to 'spec/support/capybara_helpers.rb')
-rw-r--r--spec/support/capybara_helpers.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/capybara_helpers.rb b/spec/support/capybara_helpers.rb
index 9b5c3065eed..b57a3493aff 100644
--- a/spec/support/capybara_helpers.rb
+++ b/spec/support/capybara_helpers.rb
@@ -27,6 +27,14 @@ module CapybaraHelpers
end
end
end
+
+ # Refresh the page. Calling `visit current_url` doesn't seem to work consistently.
+ #
+ def refresh
+ url = current_url
+ visit 'about:blank'
+ visit url
+ end
end
RSpec.configure do |config|