mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-12 11:50:22 +03:00
test: case insensitive regex in hasText (#15540)
This commit is contained in:
parent
6219e945d5
commit
87531289e2
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user