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(bidi): relax timeLog/timeEnd message matching (#40492)
Holger Benl9b87ba65c948
diff --git a/tests/page/page-event-console.spec.ts b/tests/page/page-event-console.spec.tsindex e5e4a1d8b6..ae1a060d1d 100644--- a/tests/page/page-event-console.spec.ts+++ b/tests/page/page-event-console.spec.ts@@ -111,9 +111,10 @@ it('should format the message correctly with time/timeLog/timeEnd', async ({ pagexpect(messages[0].type()).toBe('timeLog');expect(messages[1].type()).toBe('timeEnd');- // WebKit has a space before the unit: https://bugs.webkit.org/show_bug.cgi?id=233556- expect(messages[0].text()).toMatch(/foo time: \d+.\d+ ?ms/);- expect(messages[1].text()).toMatch(/foo time: \d+.\d+ ?ms/);+ // WebKit has no space before the unit: https://bugs.webkit.org/show_bug.cgi?id=233556+ // Firefox/Bidi has no fractional part.+ expect(messages[0].text()).toMatch(/foo time: \d+(.\d+)? ?ms/);+ expect(messages[1].text()).toMatch(/foo time: \d+(.\d+)? ?ms/);});it('should not fail for window object', async ({ page, browserName, channel }) => {