diff --git a/tests/page/selectors-get-by.spec.ts b/tests/page/selectors-get-by.spec.ts index dba7978592..a54cbe237b 100644 --- a/tests/page/selectors-get-by.spec.ts +++ b/tests/page/selectors-get-by.spec.ts @@ -23,6 +23,14 @@ it('getByTestId should work', async ({ page }) => { await expect(page.locator('div').getByTestId('Hello')).toHaveText('Hello world'); }); +it('getByTestId with custom testId should work', async ({ page, playwright }) => { + await page.setContent('