From 07f1323eff3d4a01d685e52be9d8550da5ec9e90 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Sun, 12 Apr 2020 10:04:20 -0700 Subject: [PATCH] Fix bug in test of animated form The help text for the event type field is animated using a technique unaffected by `Capybara.disable_animation`. Wait for the animation. Resolves: #2356 Works around: #2661 --- spec/features/proposals_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index 665b20e4..19f4ea39 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -125,9 +125,12 @@ feature Event do visit conference_program_proposals_path(conference.short_title) click_link 'New Proposal' + expect(page).to have_selector(".in[id='#{find_field('event[event_type_id]').value}-help']") # End of animation fill_in 'event_title', with: 'Example Proposal' select('Example Event Type', from: 'event[event_type_id]') + expect(page).to have_selector(".in[id='#{find_field('event[event_type_id]').value}-help']") # End of animation + fill_in 'event_abstract', with: 'Lorem ipsum abstract' expect(page).to have_text('You have used 3 words')