Skip to content

Filter out Apollo Devtools console message

Thong Kuah requested to merge filter_out_apollo_devtools into master

What does this MR do?

When a feature spec, we get two failure messages. The first one is the real failure. The second is just noise about Apollo Devtools:

     1.2) Failure/Error: raise JSConsoleError, message
          JSConsoleError:
            Unexpected browser console output:
            http://0.0.0.0:3809/assets/webpack/main.chunk.js 40045:32 "Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm"
            http://0.0.0.0:3809/assets/webpack/main.chunk.js 40045:32 "Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm"
            http://0.0.0.0:3809/assets/webpack/main.chunk.js 40045:32 "Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm"
          # ./spec/support/capybara.rb:113:in `block (2 levels) in <main>'
          # ./spec/spec_helper.rb:236:in `block (3 levels) in <main>'
          # ./spec/spec_helper.rb:236:in `block (2 levels) in <main>'
          # -e:1:in `<main>'

Filter this console message out, so that we don't get this 2nd un-necessary failure message

Edited by 🤖 GitLab Bot 🤖

Merge request reports