Skip to content

Commit

Permalink
Silence selenium deprecation warnings (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
bess authored Jan 24, 2025
1 parent bda3d97 commit e6d9a80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# Adds the ability to retry flaky tests.
# See https://github.com/NoRedInk/rspec-retry
require "rspec/retry"
require "selenium-webdriver"

# This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
Expand Down Expand Up @@ -149,6 +150,10 @@
# Kernel.srand config.seed
end

# Silence deprecation warnings until upstream Capybara version is updated
# See https://github.com/teamcapybara/capybara/issues/2779
Selenium::WebDriver.logger.ignore(:clear_local_storage, :clear_session_storage)

# Exports to a file the data from a spec if ENV variable is set.
def export_spec_data(file_name, data)
return unless ENV["DATA_MIGRATION"] == "true"
Expand Down

0 comments on commit e6d9a80

Please sign in to comment.