Remove obsolete e2e test ignored error messages (#7768)

These error messages are no longer present during e2e tests, so they
don't need to be ignored.
feature/default_network_editable
Mark Stacey 5 years ago committed by GitHub
parent 4132d784af
commit 5e461df617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      test/e2e/helpers.js

@ -74,14 +74,8 @@ async function setupFetchMocking (driver) {
async function checkBrowserForConsoleErrors (driver) { async function checkBrowserForConsoleErrors (driver) {
const ignoredLogTypes = ['WARNING'] const ignoredLogTypes = ['WARNING']
const ignoredErrorMessages = [ const ignoredErrorMessages = [
// React throws error warnings on "dataset", but still sets the data-* properties correctly
'Warning: Unknown prop `dataset` on ',
// Third-party Favicon 404s show up as errors // Third-party Favicon 404s show up as errors
'favicon.ico - Failed to load resource: the server responded with a status of 404 (Not Found)', 'favicon.ico - Failed to load resource: the server responded with a status of 404 (Not Found)',
// React Development build - known issue blocked by test build sys
'Warning: It looks like you\'re using a minified copy of the development build of React.',
// Redux Development build - known issue blocked by test build sys
'This means that you are running a slower development build of Redux.',
] ]
const browserLogs = await driver.manage().logs().get('browser') const browserLogs = await driver.manage().logs().get('browser')
const errorEntries = browserLogs.filter(entry => !ignoredLogTypes.includes(entry.level.toString())) const errorEntries = browserLogs.filter(entry => !ignoredLogTypes.includes(entry.level.toString()))

Loading…
Cancel
Save