From ab2702bb6865e23995976129457437ec479b13f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Metin=20K=C4=B1lag=C3=B6z?= Date: Wed, 16 Sep 2026 12:43:23 +0300 Subject: [PATCH] fix(agents): add missing parentheses in test-generator example `async { page } =>` is a syntax error; the destructured parameter needs parentheses: `async ({ page }) =>`. This is the only concrete example of a generated spec in playwright-test-generator.agent.md, so agents pattern-match against it and reproduce the invalid syntax in their output. Fixes #42743 --- .../playwright/src/agents/playwright-test-generator.agent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright/src/agents/playwright-test-generator.agent.md b/packages/playwright/src/agents/playwright-test-generator.agent.md index b5b49d04bac86..e25d19fca3cf5 100644 --- a/packages/playwright/src/agents/playwright-test-generator.agent.md +++ b/packages/playwright/src/agents/playwright-test-generator.agent.md @@ -68,7 +68,7 @@ application behavior. // seed: tests/seed.spec.ts test.describe('Adding New Todos', () => { - test('Add Valid Todo', async { page } => { + test('Add Valid Todo', async ({ page }) => { // 1. Click in the "What needs to be done?" input field await page.click(...);