thoughtbot / capybara-webkit

A Capybara driver for headless WebKit to test JavaScript web apps
https://thoughtbot.com/open-source
MIT License
1.97k stars 428 forks source link

Updates for latest Capybara #1030

Closed twalpole closed 6 years ago

twalpole commented 6 years ago

This implements the Session#refresh command to be Capybara 2.15 feature complete and loosens Capybara restrictions to allow 2.x (x >= 3). Capybara is sticking to semver as closely as possible, so there should be no downside to allowing 2.x, since the worst thing would be a user receiving a NotImplementedError raised by Capybara::Driver::Base if capybara-webkit is used with a newer Capybara before implementing any new features it introduces.

It also stops testing Capybara 2.7 due to some Capybara 2.7.1 provided tests no longer being compatible with the ruby binaries on travis trusty. 2.7 is pretty much obsolete and there's no real reason for anyone not to upgrade to 2.15 so I see no issue there.