From cd18ddb6934a3a946477e1df147446b584a92d98 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Fri, 13 Nov 2020 11:47:44 -0800 Subject: [PATCH] test: add a test for numerical id selector (#4429) --- test/selectors-css.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/selectors-css.spec.ts b/test/selectors-css.spec.ts index 45f775d5fd..a2fc9faa4f 100644 --- a/test/selectors-css.spec.ts +++ b/test/selectors-css.spec.ts @@ -125,3 +125,9 @@ it('should not match root after >>', async ({page, server}) => { const element = await page.$('css=section >> css=section'); expect(element).toBe(null); }); + +it('should work with numerical id', async ({page, server}) => { + await page.setContent('
'); + const element = await page.$('#\\31\\32\\33'); + expect(element).toBeTruthy(); +});