Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Intermittent failure in adoption form integration test #68

Open
jhsu802701 opened this issue Feb 8, 2017 · 2 comments
Open

Intermittent failure in adoption form integration test #68

jhsu802701 opened this issue Feb 8, 2017 · 2 comments

Comments

@jhsu802701
Copy link
Collaborator

Adoption Form Not signed in user clicks a thing Displays the "Sign in to adopt" message
Failure/Error: find('.thing', match: :first).trigger('click')

 Capybara::ElementNotFound:
   Unable to find css ".thing"
 # ./spec/features/adoption_form_spec.rb:13:in `block (3 levels) in <top (required)>'
@jhsu802701
Copy link
Collaborator Author

Place: 'Signed in user clicks a thing' test

The offending lines are "expect(page).to have_selector('#adoption_form', wait: 20)" and "find_button('Adopt!').trigger('click')".

@jhsu802701
Copy link
Collaborator Author

I will be adding the capybara-screenshot gem, which automatically saves a snapshot of the page when a test fails. (Thanks for suggesting this, Bill. I was not aware of this gem.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant