Skip to content

Commit 57af14d

Browse files
rails-template-sync[bot]Template Bot
andauthored
Apply template update: Capybara: enable finding elements by aria-label (#1479)
Source: mockdeep/Rails-Template#1391 Co-authored-by: Template Bot <template-bot@users.noreply.github.com>
1 parent 4c68c23 commit 57af14d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/support/capybara.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
require "capybara/rails"
44

55
Capybara.enable_aria_label = true
6+
Capybara.save_path = ENV.fetch("CIRCLE_ARTIFACTS", Capybara.save_path)
7+
Capybara.server = :puma, { Silent: true }
68

79
Selenium::WebDriver.logger.output = Rails.root.join("log/selenium.log")
810

11+
using = ENV.fetch("DRIVER", :firefox).to_sym
12+
913
RSpec.configure do |config|
1014
config.before(:each, type: :system) do
11-
driven_by(:selenium, using: :firefox) do |driver|
15+
driven_by(:selenium, using:) do |driver|
1216
driver.add_preference("browser.download.folderList", 2)
1317
driver.add_preference("browser.download.manager.showWhenStarting", false)
1418
driver.add_preference("browser.download.dir", Downloads::PATH.to_s)

0 commit comments

Comments
 (0)