Skip to content

Commit de12e12

Browse files
author
Vidas P
committed
Sleep around flaky capybara test
Ugly solution for delays in bootstraps animated modals.
1 parent 780871c commit de12e12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/features/dry_running_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def open_dry_run_modal(agent)
6464

6565
expect(editor_value('payload_editor')).to include('Line 1\nLine 2\nLine 3')
6666

67+
sleep(1)
6768
click_on('Dry Run')
69+
sleep(1)
70+
6871
expect(page).to have_text('Dry Run Results')
6972
expect(page).to have_text('Line 1,Line 2,Line 3')
7073
expect(page).to have_selector(:css, 'li[role="presentation"].active a[href="#tabMessages"]')

0 commit comments

Comments
 (0)