Show labeled steps for `instant()` test helper in the Playwright UI (#90664)
Stacked on #90613
When `@playwright/test` is available, the `instant()` helper now wraps
its cookie-based lock acquire and release in `test.step()` calls. This
surfaces "Acquire Instant Lock" and "Release Instant Lock" as distinct,
labeled entries in the Playwright UI action list instead of anonymous
`browserContext.addCookies` calls.
`@playwright/test` is added as an optional peer dependency of
`@next/playwright`. When it is not installed, the helper behaves exactly
as before.
Before:
<img width="251" alt="before"
src="https://github.com/user-attachments/assets/6c68b1d2-012d-4ff9-aa72-9f931dfe55ed"
/>
After:
<img width="251" alt="after"
src="https://github.com/user-attachments/assets/0156245d-b52f-4542-b22c-7d538aea5810"
/>
---------
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>