Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump capybara from 2.17.0 to 3.29.0 #3788

Merged
merged 4 commits into from
Apr 6, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Oct 23, 2019

Bumps capybara from 2.17.0 to 3.29.0.

Changelog

Sourced from capybara's changelog.

Version 3.29.0

Release date: 2019-09-02

Added

  • Allow clicking on file input when using the block version of attach_file with Chrome and Firefox
  • Spatial filters (left_of, right_of, above, below, near)
  • rack_test driver now supports clicking on details elements to open/close them

Fixed

  • rack_test driver correctly determines visibility for open details elements descendants

Changed

  • Results will now be lazily evaluated when using JRuby >= 9.2.8.0

Version 3.28.0

Release date: 2019-08-03

Added

  • Allow forcing HTML5 or legacy dragging via the :html5 option to drag_to when using Selenium with Chrome or Firefox
  • Autodetection of drag type interprets not seeing the mousedown event as legacy.
  • HTML5 form validation :valid node filter added to :field and :fillable_field selectors
  • When using Capybara registered :puma server - patches Puma 4.0.x to fix SSL connection behavior. Removes
    default queue_requests setting - Issue #2227

Version 3.27.0

Release date: 2019-07-28

Added

  • Allow to use chromedriver/geckodriver native is_element_displayed endpoint via Selenium
    driver native_displayed option for performance reasons. Disabled by default due to endpoints
    currently not handling <details> element descendants visibility correctly.

Fixed

  • Ignore negative lookahead/lookbehind regex when performing initial XPath text matching
  • Reloading of elements found via ancestor and sibling
  • Only default puma settings to queue_requests: false when using SSL
  • Visibility of descendants of <details> elements is correctly determined when using rack_test
    and the selenium driver with Capybara optimized atoms
  • local/session storage clearance in Chrome when clearing only one of them - Issue #2233

Version 3.26.0

Release date: 2019-07-15

... (truncated)
Commits
  • a5c368f Update README for 3.29_stable branch
  • 64ac389 Prepare for 3.29 release
  • 6319738 Move common file input click emulation behavior into module
  • fdf0095 Update History.md [ci skip]
  • 2cf317a Support rack_test driver toggling details elements
  • d0ca4bb Fix simple node visibility for open details element descendants
  • ad5d347 Remove extraneous focus_ metadata
  • 32b2261 Set download directory to work with headless chrome 77
  • ea6486b Emulate click on file input when attaching file using Selenium with Chrome an...
  • 2e05279 JRuby 9.2.8.0 has been released and no longer needs the lazy results workaround
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that updates a dependency label Oct 23, 2019
@javierm
Copy link
Member

javierm commented Oct 24, 2019

@dependabot rebase

@dependabot-preview dependabot-preview bot force-pushed the dependabot/bundler/capybara-3.29.0 branch from 4d5cc9c to 21506df Compare October 24, 2019 19:33
@javierm
Copy link
Member

javierm commented Oct 24, 2019

It looks like some tests fail due to different behavior in Capybara regarding line breaks in the content 🤔, probably related to teamcapybara/capybara#2001.

@dependabot-preview
Copy link
Contributor Author

Sorry, only users with push access can use that command.

@dependabot-preview dependabot-preview bot force-pushed the dependabot/bundler/capybara-3.29.0 branch from 237bbb5 to f2635cb Compare November 14, 2019 12:33
@javierm
Copy link
Member

javierm commented Nov 18, 2019

@dependabot rebase

@dependabot-preview dependabot-preview bot force-pushed the dependabot/bundler/capybara-3.29.0 branch from f2635cb to 5068bca Compare November 18, 2019 10:47
@javierm javierm self-assigned this Nov 18, 2019
@javierm javierm added this to Reviewing in Roadmap via automation Nov 18, 2019
@javierm javierm force-pushed the dependabot/bundler/capybara-3.29.0 branch from 83a4f34 to d468185 Compare November 19, 2019 23:24
@dependabot-preview
Copy link
Contributor Author

A newer version of capybara exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@javierm javierm force-pushed the dependabot/bundler/capybara-3.29.0 branch from d468185 to f2bc598 Compare February 28, 2020 17:12
@javierm javierm removed the post 1.1 label Mar 11, 2020
@javierm javierm added this to Reviewing in Consul Democracy Mar 11, 2020
@javierm javierm force-pushed the dependabot/bundler/capybara-3.29.0 branch from f2bc598 to 6f58ba8 Compare March 13, 2020 14:09
Consul Democracy automation moved this from Reviewing to Testing Mar 13, 2020
dependabot-preview bot and others added 4 commits April 6, 2020 20:11
With the rack driver, the `ballot_sheet.data` text was being converted
from newline characters to whitespace, while with the JavaScript driver
we get newline characters for `<br>` tags, as we expect.
Checking the whole text is tricky because the text has a `<br>` tag, and
now Capybara doesn't normalize whitespace by default anymore.

Here are a couple more options we could use:

```
expect(page).to have_content strip_tags(message.gsub(/\s*<br>\s*/,"\n"))

expect(page).to have_content strip_tags(message), normalize_ws: true
```

But then developers would wonder why we're doing all this, and would
need an extra effort to fully understand the test.

Since the tests are only checking the presence of the flash message,
checking a relevant part of the test is enough, works with any version
of Capybara, and makes the test easy to follow.
The following code:

```
<span class="show-for-sr">You're on page</span> 1
```

Will generate an element with `position: absolute`. When reading the
contents, it's not clear whether this element is supposed to be in the
 same paragraph or in a different one. Currently Capybara treats it as
if it were part of a different paragraph.

Since this could be the way screen readers read the text, I'm changing
the test to reflect this fact. We might change our minds in the future.
@javierm javierm force-pushed the dependabot/bundler/capybara-3.29.0 branch from 6f58ba8 to fe20688 Compare April 6, 2020 18:12
@javierm javierm merged commit 7212f6d into master Apr 6, 2020
Consul Democracy automation moved this from Testing to Release 1.2.0 Apr 6, 2020
@javierm javierm deleted the dependabot/bundler/capybara-3.29.0 branch April 6, 2020 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that updates a dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant