cherry-pick(#17864): test: fix "getByText should work" with tracing enabled, docker smoke tests (#17883)
This commit is contained in:
parent
2993281d78
commit
3bf42ce163
|
|
@ -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…
Reference in a new issue