Commit 6d71f9f8 authored by Nick Thomas's avatar Nick Thomas

Remove some racing expectations

parent e49ac1c6
......@@ -140,11 +140,8 @@ describe 'Project mirror', :js do
click_without_sidekiq 'Regenerate key'
find('.js-regenerate-public-ssh-key-confirm-modal .js-confirm').click
expect(page).to have_selector(".fa-spinner")
wait_for_requests
expect(page).not_to have_selector(".fa-spinner")
expect(page).not_to have_content(first_key)
expect(page).to have_content(import_data.reload.ssh_public_key)
end
......@@ -164,11 +161,8 @@ describe 'Project mirror', :js do
select('Pull', from: 'Mirror direction')
click_on 'Detect host keys'
expect(page).to have_selector(".fa-spinner")
wait_for_requests
expect(page).not_to have_selector(".fa-spinner")
expect(page).to have_content(key.fingerprint)
click_on 'Input host keys manually'
......@@ -187,11 +181,7 @@ describe 'Project mirror', :js do
select('Pull', from: 'Mirror direction')
click_on 'Detect host keys'
expect(page).to have_selector(".fa-spinner")
wait_for_requests
expect(page).not_to have_selector(".fa-spinner")
end
# Appears in the flash
......
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