mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
This commit is contained in:
parent
0646e41a82
commit
07f1323eff
1 changed files with 3 additions and 0 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue