mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix "getByText should work" with tracing enabled, docker smoke tests (#17864)
This commit is contained in:
parent
c0e4caa604
commit
a23ee6f14d
@ -13,7 +13,7 @@
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"dtest": "cross-env PLAYWRIGHT_DOCKER=1 playwright docker --config=tests/library/playwright.config.ts --grep '@smoke'",
|
||||
"dtest": "cross-env PLAYWRIGHT_DOCKER=1 playwright test --config=tests/library/playwright.config.ts --grep '@smoke'",
|
||||
"ctest": "playwright test --config=tests/library/playwright.config.ts --project=chromium",
|
||||
"ftest": "playwright test --config=tests/library/playwright.config.ts --project=firefox",
|
||||
"wtest": "playwright test --config=tests/library/playwright.config.ts --project=webkit",
|
||||
|
@ -38,7 +38,7 @@ it('getByText should work', async ({ page }) => {
|
||||
expect(await page.getByText('ye', { exact: true }).first().evaluate(e => e.outerHTML)).toContain('> ye </div>');
|
||||
|
||||
await page.setContent(`<div>Hello world</div><div>Hello</div>`);
|
||||
expect(await page.getByText('Hello', { exact: true }).evaluate(e => e.outerHTML)).toBe('<div>Hello</div>');
|
||||
expect(await page.getByText('Hello', { exact: true }).evaluate(e => e.outerHTML)).toContain('>Hello</div>');
|
||||
});
|
||||
|
||||
it('getByLabel should work', async ({ page }) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user