Skip to content

Commit

Permalink
Merge pull request #66 from alphagov/use-options-instead-of-capabilities
Browse files Browse the repository at this point in the history
Version 4.0.1 - Use options instead of capabilities
  • Loading branch information
chrisroos authored Oct 10, 2023
2 parents f42f644 + d6e3d1d commit b88006a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
useful summary for people upgrading their application, not a replication
of the commit log.

## 4.0.1

* Use `options` instead of `capabilities` in `Capybara::Selenium::Driver#initialize`. The use of `capabilities` was deprecated in selenium 4.8.0 and was removed in selenium 4.12.0.

## 4.0.0

* Replace call to deprecated `Selenium::WebDriver::Chrome::Options#headless!` method ([#63](https://github.com/alphagov/govuk_test/pull/63))
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.configure
Capybara.register_driver :headless_chrome do |app|
Capybara::Selenium::Driver.new(app,
browser: :chrome,
capabilities: headless_chrome_selenium_options)
options: headless_chrome_selenium_options)
end

Capybara.javascript_driver = :headless_chrome
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_test/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GovukTest
VERSION = "4.0.0".freeze
VERSION = "4.0.1".freeze
end
2 changes: 1 addition & 1 deletion spec/govuk_test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
it "uses .headless_chrome_selenium_options to set default options" do
described_class.configure
driver = Capybara.drivers[:headless_chrome].call
expect(driver.options[:capabilities].args)
expect(driver.options[:options].args)
.to eq(described_class.headless_chrome_selenium_options.args)
end
end
Expand Down

0 comments on commit b88006a

Please sign in to comment.