diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-01 17:53:41 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-03 19:08:21 +0100 |
commit | 7bff17eb753574eb5c6ad7a2834624ba8ad000be (patch) | |
tree | 6d1a1c13d22019213b4dfa8c167f9494e55d5e9e /spec/spec_helper.rb | |
parent | ee59a64b2035622b02760d5ab928ea59a35cd45f (diff) | |
download | gitlab-ce-7bff17eb753574eb5c6ad7a2834624ba8ad000be.tar.gz |
Shave spec/features/issues/filtered_search/dropdown_label_spec.rb from 10 minutes to 1.5 minutes27564-shave-dropdown-label-search-spec-duration
- Don't use `sleep` (most of the time was wasted by that)
- Expect some elements to be visible instead: capybara is smart enough
to retry a few times if it cannot find an element
- See
https://github.com/teamcapybara/capybara#asynchronous-javascript-ajax-and-friends
- Don't create unneccessary DB records
- Group some examples together to shave some setup time (where it makes
sense)
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ab38dac65c5..5fda7c63cdb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -35,6 +35,7 @@ RSpec.configure do |config| config.include Warden::Test::Helpers, type: :request config.include LoginHelpers, type: :feature config.include SearchHelpers, type: :feature + config.include WaitForAjax, type: :feature config.include StubConfiguration config.include EmailHelpers, type: :mailer config.include TestEnv |