diff --git a/test/integration/image-component/default/test/index.test.js b/test/integration/image-component/default/test/index.test.js index 96d1041b6b59..9bc8665170f2 100644 --- a/test/integration/image-component/default/test/index.test.js +++ b/test/integration/image-component/default/test/index.test.js @@ -1150,7 +1150,7 @@ function runTests(mode) { } }) - it('should be valid W3C HTML', async () => { + it('should be valid HTML', async () => { let browser try { browser = await webdriver(appPort, '/valid-html-w3c') @@ -1161,8 +1161,10 @@ function runTests(mode) { url, format: 'json', isLocal: true, + validator: 'whatwg', }) - expect(result.messages).toEqual([]) + expect(result.isValid).toBe(true) + expect(result.errors).toEqual([]) } finally { if (browser) { await browser.close()