1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-27 14:28:24 +09:00

Ignore intermittent chrome/manifest/icon interaction failure (#30793)

This commit is contained in:
Matt Jankowski 2024-06-25 09:57:40 -04:00 committed by GitHub
parent 547e97945d
commit 8ef59729a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,14 @@
RSpec.configure do |config|
config.after(:each, :js, type: :system) do
errors = page.driver.browser.logs.get(:browser)
# Classes of intermittent ignorable errors
ignored_errors = [
/Error while trying to use the following icon from the Manifest/, # https://github.com/mastodon/mastodon/pull/30793
]
errors = page.driver.browser.logs.get(:browser).reject do |error|
ignored_errors.any? { |pattern| pattern.match(error.message) }
end
if errors.present?
aggregate_failures 'javascript errrors' do
errors.each do |error|