diff --git a/tests/page/expect-to-have-value.spec.ts b/tests/page/expect-to-have-value.spec.ts
index 0518eac725..730a8f3b4b 100644
--- a/tests/page/expect-to-have-value.spec.ts
+++ b/tests/page/expect-to-have-value.spec.ts
@@ -37,6 +37,13 @@ test('should work with regex', async ({ page }) => {
await expect(locator).toHaveValue(/Text/);
});
+test('should normalize NBSP to regular space', async ({ page }) => {
+ await page.setContent('');
+ const locator = page.locator('#node');
+ await locator.fill('Text\u00A0and\u0020content');
+ await expect(locator).toHaveValue('Text and content');
+});
+
test('should support failure', async ({ page }) => {
await page.setContent('');
const locator = page.locator('#node');