In config/rails_helper.rb, add the following to the RSpec.configure do |config| block:
config.include ActionView::RecordIdentifierYou can then use dom_id within your specs.
Aug 15, 2025
In config/rails_helper.rb, add the following to the RSpec.configure do |config| block:
config.include ActionView::RecordIdentifierYou can then use dom_id within your specs.