Skip to content

Commit

Permalink
ignore server errors related to asset loading
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBitZesty committed Aug 29, 2024
1 parent 0e9decb commit 3164c7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ def matches?(source_file)
config.include(Shoulda::Matchers::ActiveModel, type: :model)
config.include(Shoulda::Matchers::ActiveRecord, type: :model)
end

config.before(:each, type: :feature) do
allow_any_instance_of(ActionDispatch::Request).to receive(:path_info).and_return('/') if page.current_path == '/favicon.ico'
end
end

def stub_sendgrid_bounced_emails_check_request(email)
Expand Down
1 change: 1 addition & 0 deletions spec/support/shared_contexts/appraisal_form_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

before do
login_as(subject, scope: scope)
page.driver.browser.js_errors = false # Ignore JavaScript errors
visit show_path
end

Expand Down

0 comments on commit 3164c7e

Please sign in to comment.