chore: bump playwright (#13947)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Updated Playwright test tooling to 1.58.2 across the repository and
test packages.

* **Tests**
* Improved end-to-end robustness: replaced fragile timing/coordinate
logic with element-based interactions, added polling/retry checks for
flaky asserts and async state, and simplified input/rename flows to
reduce test flakiness.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-02-27 22:56:43 +08:00
committed by GitHub
parent c90f173821
commit a4e2242b8d
16 changed files with 170 additions and 119 deletions

View File

@@ -820,10 +820,10 @@ export async function updateExistedBrushElementSize(
page: Page,
nthSizeButton: 1 | 2 | 3 | 4 | 5 | 6
) {
// get the nth brush size button
const btn = page.locator(
`edgeless-line-width-panel .point-button:nth-child(${nthSizeButton})`
);
// pick from the visible panel to avoid strict-mode collisions from hidden/duplicate toolbars
const btn = page
.locator('edgeless-line-width-panel:visible .point-button')
.nth(nthSizeButton - 1);
await btn.click();
}