Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: case insensitive regex in hasText (#15540)
Yury Semikhatsky87531289e2bd
diff --git a/tests/page/locator-query.spec.ts b/tests/page/locator-query.spec.tsindex 720b2e6dd9..fc5194b97d 100644--- a/tests/page/locator-query.spec.ts+++ b/tests/page/locator-query.spec.ts@@ -90,6 +90,13 @@ it('should filter by regex and regexp flags', async ({ page }) => {await expect(page.locator('div', { hasText: /hElLo "world"/i })).toHaveText('Hello "world"');});+it('should filter by case-insensitive regex in a child', async ({ page }) => {+ it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15348' });+ it.fixme();+ await page.setContent(`<div class="test"><h5>Title Text</h5></div>`);+ await expect(page.locator('div', { hasText: /^title text$/i })).toHaveText('Title Text');+});+it('should support has:locator', async ({ page, trace }) => {it.skip(trace === 'on');