Playwright code an @playwright/test spec — test('...', async ({ page }) => ...)
page.goto('./') — baseURL is the target URL from config.json ·
await test.step('label', ...) shows in Step timings ·
process.env.PW_SECRET_NAME reads a hub secret ·
expect(...) to assert.
Editor: Ctrl-F search · Ctrl-/ comment.
“Record in a browser tab” opens the Remote Recorder: the hub drives
its own bundled Chromium and you interact with a live picture of it — so it works on a
deployed hub (AWS/office) and from a locked-down workstation browser. Everything
finishes IN that tab: stopping offers “append the new steps to this
test” (it shows which steps the test already has).
If your browser blocks the pop-up (Safari), use the “Record new test” button on the
Tests page instead — it opens in this same tab.