test: add a test for numerical id selector (#4429)
This commit is contained in:
parent
9e1b26f9f9
commit
cd18ddb693
|
|
@ -125,3 +125,9 @@ it('should not match root after >>', async ({page, server}) => {
|
||||||
const element = await page.$('css=section >> css=section');
|
const element = await page.$('css=section >> css=section');
|
||||||
expect(element).toBe(null);
|
expect(element).toBe(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should work with numerical id', async ({page, server}) => {
|
||||||
|
await page.setContent('<section id="123"></section>');
|
||||||
|
const element = await page.$('#\\31\\32\\33');
|
||||||
|
expect(element).toBeTruthy();
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue