
expect(locator).toContainText(text, options?). You can either pass this timeout or configure it once via the testProject.expect value in test config.īy default, the timeout for assertions is not set, so it'll wait forever, until the whole test times out. It will be re-fetching the node and checking it over and over, until the condition is met or until the timeout is reached. status until fetched Node has the "Submitted" text. Playwright Test will be re-testing the node with the selector. 🎭 Playwright Test 🤝 test.parallel() run tests in the same file in parallel Request.sizes() Returns resource size information for given http request. tChecked(selector: string, checked: boolean) and tChecked(selector: string, checked: boolean) was introduced to set the checked state of a checkbox. Page.route() accepts new times option to specify how many times this route should be matched. Its now possible to emulate the forced-colors CSS media feature by passing it in the context options or calling Page.emulateMedia(). This is now possible and additional helper functions are available: Previously it was not possible to get multiple header values of a response. 🎭 Playwright Library 🖱️ Mouse Wheel īy using you are now able to scroll vertically or horizontally. This version was also tested against the following stable channels: If you are doing one of the two, learn more Browser Versions We also noticed some applications that were post processing the reporters' output in the global teardown. We've noticed that in rare cases, the set of tests to be executed was configured in the global setup by means of the environment variables.
It is unlikely that this change will affect you, no action is required if your tests keep running as they did. Potentially breaking change in Playwright Test Global Setup New testInfo.errors and testResult.errors that contain all failed assertions and soft assertions. New option url in testConfig.webServer to ensure your web server is ready before running the tests
Playwright Codegen now generates locators and frame locators Page.screenshot() and locator.screenshot() now automatically hide blinking caret