Ignore intermittent chrome/manifest/icon interaction failure (#30793)
This commit is contained in:
parent
547e97945d
commit
8ef59729a1
1 changed files with 8 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue