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 page.title test expectation for webkit (#39726)
Yury Semikhatsky21e48860dc73
diff --git a/tests/page/page-basic.spec.ts b/tests/page/page-basic.spec.tsindex cf923d747a..e14c4a7bb7 100644--- a/tests/page/page-basic.spec.ts+++ b/tests/page/page-basic.spec.ts@@ -93,7 +93,7 @@ it('page.title should not throw during navigation', async ({ page, server }) =>promise,]);expect(typeof titleOrError).toBe('string');- expect(titleOrError).toMatch(/^(Loading http.*title.html|hello|Woof-Woof)$/);+ expect(titleOrError).toMatch(/^(hello|Loading http.*title.html||Woof-Woof)$/);await expect(page).toHaveTitle('Woof-Woof');});