summaryrefslogtreecommitdiff
path: root/features/steps/shared/diff_note.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/shared/diff_note.rb')
-rw-r--r--features/steps/shared/diff_note.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/features/steps/shared/diff_note.rb b/features/steps/shared/diff_note.rb
index 35b71599708..11fa85ed2fe 100644
--- a/features/steps/shared/diff_note.rb
+++ b/features/steps/shared/diff_note.rb
@@ -1,6 +1,11 @@
module SharedDiffNote
include Spinach::DSL
include RepoHelpers
+ include WaitForAjax
+
+ after do
+ wait_for_ajax if javascript_test?
+ end
step 'I cancel the diff comment' do
page.within(diff_file_selector) do