Skip to content

Commit c7d7ce0

Browse files
Skn0ttclaude
andcommitted
docs: update v1.58 release notes
- Remove toHaveCSS with React.CSSProperties (reverted in microsoft#38900) - Remove shard weights and shardIndex mentions (made private) - Add connectOverCDP isLocal option (microsoft#38614) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3044a85 commit c7d7ce0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/src/release-notes-js.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,13 @@ The HTML report's Speedboard tab now shows how long each shard took, making it e
1414

1515
![Shard Duration chart in the HTML report](./images/speedboard-shards.png)
1616

17-
Once you've identified slow shards, you can use the new custom sharding weights to rebalance them and speed up your overall CI time.
18-
The `shardIndex` is also now available in the reporter API for custom reporting and debugging.
17+
### New `isLocal` Option for CDP Connections
1918

20-
### New `toHaveCSS` Overload
21-
22-
If you have `@types/react` installed, you can now pass a style object to [`method: LocatorAssertions.toHaveCSS#1`] for type-safe CSS assertions:
19+
[`method: BrowserType.connectOverCDP`] now accepts an `isLocal` option. When set to `true`, it tells Playwright that it runs on the same host as the CDP server, enabling file system optimizations.
2320

2421
```ts
25-
await expect(locator).toHaveCSS({
26-
backgroundColor: 'rgb(255, 0, 0)',
27-
fontSize: '16px',
22+
const browser = await chromium.connectOverCDP('http://localhost:9222', {
23+
isLocal: true,
2824
});
2925
```
3026

0 commit comments

Comments
 (0)