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: fix "getByText should work" with tracing enabled, docker smoke tests (#17864)
Dmitry Gozmana23ee6f14d57
diff --git a/package.json b/package.jsonindex d7d3be3687..2d2af6072f 100644--- a/package.json+++ b/package.json@@ -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",diff --git a/tests/page/selectors-get-by.spec.ts b/tests/page/selectors-get-by.spec.tsindex 21210681ce..63510c1007 100644--- a/tests/page/selectors-get-by.spec.ts+++ b/tests/page/selectors-get-by.spec.ts@@ -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 }) => {