diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts index 2360f9307b..6a83689ced 100644 --- a/tests/library/capabilities.spec.ts +++ b/tests/library/capabilities.spec.ts @@ -435,28 +435,29 @@ it('should not auto play audio', { description: 'https://github.com/microsoft/playwright/issues/33590' } }, async ({ page }) => { - await page.route('**/*', async (route) => { - route.fulfill({ - status: 200, - contentType: 'text/html', - body: ` -
- - `, - }); + await page.route('**/*', async route => { + await route.fulfill({ + status: 200, + contentType: 'text/html', + body: ` + + + + `, + }); }); await page.goto('http://127.0.0.1/audio.html'); await expect(page.locator('#log')).toHaveText('State: suspended');