diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-18 16:08:01 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-19 16:29:23 +0300 |
commit | 25465751c17f8202e6edb8b345ae783b31067dd2 (patch) | |
tree | a4bae81ef876a4c3df1cc4d79f636cf70bd1d40d /spec/features/projects/branches | |
parent | 0da7a892bb7fec5c580a6a15d2d9f02cf9d86db1 (diff) |
Change sleep to wait_for_ajax
Diffstat (limited to 'spec/features/projects/branches')
-rw-r--r-- | spec/features/projects/branches/delete_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/projects/branches/delete_spec.rb b/spec/features/projects/branches/delete_spec.rb index 77acceca7eb..63878c55421 100644 --- a/spec/features/projects/branches/delete_spec.rb +++ b/spec/features/projects/branches/delete_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' feature 'Delete branch', feature: true, js: true do + include WaitForAjax + let(:project) { create(:project) } let(:user) { create(:user) } @@ -15,7 +17,7 @@ feature 'Delete branch', feature: true, js: true do expect(page).to have_selector('.tooltip') first('.remove-row').click - sleep 1 + wait_for_ajax expect(page).not_to have_selector('.tooltip') end |