diff --git a/test/regressions/index.test.js b/test/regressions/index.test.js index 0c16e120df26ad..06085d88b8b724 100644 --- a/test/regressions/index.test.js +++ b/test/regressions/index.test.js @@ -1,5 +1,4 @@ import * as fse from 'fs-extra'; -import { expect } from 'chai'; import * as path from 'path'; import * as playwright from 'playwright'; @@ -27,15 +26,6 @@ async function main() { } }); - let errorConsole; - - page.on('console', (msg) => { - // Filter out native user-agent errors e.g. "Failed to load resource: net::ERR_FAILED" - if (msg.args().length > 0 && (msg.type() === 'error' || msg.type() === 'warning')) { - errorConsole = msg.text(); - } - }); - // Wait for all requests to finish. // This should load shared ressources such as fonts. await page.goto(`${baseUrl}#no-dev`, { waitUntil: 'networkidle0' }); @@ -66,16 +56,8 @@ async function main() { await browser.close(); }); - it('should have no errors after the initial render', () => { - const msg = errorConsole; - errorConsole = undefined; - expect(msg).to.equal(undefined); - }); - routes.forEach((route, index) => { - const pathURL = route.replace(baseUrl, ''); - - it(`creates screenshots of ${pathURL}`, async function test() { + it(`creates screenshots of ${route.replace(baseUrl, '')}`, async function test() { // With the playwright inspector we might want to call `page.pause` which would lead to a timeout. if (process.env.PWDEBUG) { this.timeout(0); @@ -99,12 +81,6 @@ async function main() { await fse.ensureDir(path.dirname(screenshotPath)); await testcase.screenshot({ path: screenshotPath, type: 'png' }); }); - - it(`should have no errors rendering ${pathURL}`, () => { - const msg = errorConsole; - errorConsole = undefined; - expect(msg).to.equal(undefined); - }); }); });