@playwright/experimental-ct-svelte
1.58.2 · 6 Feb 2026Apache-2.018.1k / weekRepositoryHomepagenpmAtom feed
1.58.2 is the newest release of 1.x.
In short
3 breaking3 new1 changed4 internal
- Breaking
200-299 - Breaking
300-399(new) - Breaking
400,401,402,403(new)
Release note
Playwright v1.23 updates
Network Replay
Now you can record network traffic into a HAR file and re-use the data in your tests.
To record network into HAR file:
npx playwright open --save-har=github.har.zip https://github.com/microsoft
Alternatively, you can record HAR programmatically:
const context = await browser.newContext({
recordHar: { path: 'github.har.zip' }
});
// ... do stuff ...
await context.close();Use the new methods page.routeFromHAR() or browserContext.routeFromHAR() to serve matching responses from the HAR file:
await context.routeFromHAR('github.har.zip');Read more in our documentation.
Advanced Routing
You can now use route.fallback() to defer routing to other handlers.
Consider the following example:
// Remove a header from all requests.
test.beforeEach(async ({ page }) => {
await page.route('**/*', route => {
const headers = route.request().headers();
delete headers['if-none-match'];
route.fallback({ headers });
});
});
test('should work', async ({ page }) => {
await page.route('**/*', route => {
if (route.request().resourceType() === 'image')
route.abort();
else
route.fallback();
});
});Note that the new methods page.routeFromHAR() and browserContext.routeFromHAR() also participate in routing and could be deferred to.
Web-First Assertions Update
New method
expect(locator).toHaveValues()that asserts all selected values of<select multiple>element.Methods
expect(locator).toContainText()andexpect(locator).toHaveText()now acceptignoreCaseoption.
Component Tests Update
Support for Vue2 via the
@playwright/experimental-ct-vue2package.Support for component tests for create-react-app with components in
.jsfiles.
Read more about component testing with Playwright.
Breaking Changes
WebServer is now considered "ready" if request to the specified port has any of the following HTTP status codes:
- Breaking
200-299 - Breaking
300-399(new) - Breaking
400,401,402,403(new)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.