Commit 25465751 authored by Phil Hughes's avatar Phil Hughes

Change sleep to wait_for_ajax

parent 0da7a892
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment