You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the following: If you replace hidden content of a hidden parent (e.g. using innerHTML) and then make the parent visible, Capybara intermittently picks up the old content.
I was able to create this very minimal HTML with the accompanying, random failing spec:
Testing this multiple times using while bin/rspec spec/features/test.rb; do :; done leads quickly to
Failure/Error: expect(page).to have_field('draft', with: 'World')
expected to find field "draft" that is not disabled with value "World" but there were no matches. Also found "", which matched the selector but not all filters. Expected value to be "World" but was ""
Tested both with the most recent gem version as well as github master.
I will submit a PR with a potential fix.
Update: After further investigation, this seems to be an issue in Ferrum. I will open the PR there and reference this issue.
The text was updated successfully, but these errors were encountered:
stevschmid
changed the title
Visibility issue upon replacing hidden nodes (Race condition with Capybara)
Visibility issue upon replacing hidden nodes (Race condition)
Jun 21, 2023
I noticed the following: If you replace hidden content of a hidden parent (e.g. using
innerHTML
) and then make the parent visible, Capybara intermittently picks up the old content.I was able to create this very minimal HTML with the accompanying, random failing spec:
Testing this multiple times using
while bin/rspec spec/features/test.rb; do :; done
leads quickly toTested both with the most recent gem version as well as github master.
I will submit a PR with a potential fix.
Update: After further investigation, this seems to be an issue in Ferrum. I will open the PR there and reference this issue.
The text was updated successfully, but these errors were encountered: