From b1761118919faeac069de5782beb6c5342f8228a Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Fri, 29 Aug 2025 18:25:21 -0700 Subject: [PATCH] chore: roll Playwright to latest (#971) --- package-lock.json | 28 ++++++++++++++-------------- package.json | 6 +++--- src/tools/verify.ts | 2 +- tests/verify.spec.ts | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index b60d7e4..1e590ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,8 @@ "debug": "^4.4.1", "dotenv": "^17.2.0", "mime": "^4.0.7", - "playwright": "1.55.0-alpha-2025-08-12", - "playwright-core": "1.55.0-alpha-2025-08-12", + "playwright": "1.56.0-alpha-1756505518000", + "playwright-core": "1.56.0-alpha-1756505518000", "ws": "^8.18.1", "zod": "^3.24.1", "zod-to-json-schema": "^3.24.4" @@ -27,7 +27,7 @@ "@anthropic-ai/sdk": "^0.57.0", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.19.0", - "@playwright/test": "1.55.0-alpha-2025-08-12", + "@playwright/test": "1.56.0-alpha-1756505518000", "@stylistic/eslint-plugin": "^3.0.1", "@types/debug": "^4.1.12", "@types/node": "^22.13.10", @@ -703,13 +703,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.55.0-alpha-2025-08-12", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.55.0-alpha-2025-08-12.tgz", - "integrity": "sha512-lyq9MDSd4UcOWx5292AYLBfbYYCstg8iLb+lk6LdM69ps6bwmPloZO3Ol3JO3FQQ63qAuW9VD0w+ZYKL0lRmQA==", + "version": "1.56.0-alpha-1756505518000", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.56.0-alpha-1756505518000.tgz", + "integrity": "sha512-BLTEYook8jXHONKqmOgcG/q6SLZIyyJClgc+YJGg/G3w3dg1pE2dtdO/gECFnM8FX9UY4DOa9c6eJVU1feHk/w==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.55.0-alpha-2025-08-12" + "playwright": "1.56.0-alpha-1756505518000" }, "bin": { "playwright": "cli.js" @@ -3745,12 +3745,12 @@ } }, "node_modules/playwright": { - "version": "1.55.0-alpha-2025-08-12", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.55.0-alpha-2025-08-12.tgz", - "integrity": "sha512-daZPM5gX0VTG6ae3/qOpEKc9NxoavkM2lfL0UIzTG0k+yK8ZeSPYo63iewZhVANsWRm0BT+XQ1NniAUOwWQ+xA==", + "version": "1.56.0-alpha-1756505518000", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.56.0-alpha-1756505518000.tgz", + "integrity": "sha512-aChIG1Hly/pxzVdwOMArmOMNz4Wo2VyWBxLaMvLJaGWRPPB9+Sl1N8PRm6oH1CbbpFGpPvIeXl83LomkibShRA==", "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.55.0-alpha-2025-08-12" + "playwright-core": "1.56.0-alpha-1756505518000" }, "bin": { "playwright": "cli.js" @@ -3763,9 +3763,9 @@ } }, "node_modules/playwright-core": { - "version": "1.55.0-alpha-2025-08-12", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.0-alpha-2025-08-12.tgz", - "integrity": "sha512-4uxOd9xmeF6gqdsORzzlXd7p795vcACOiAGVHHEiTuFXsD83LYH+0C/SYLWB0Z+fAq4LdKGsy0qEfTm0JkY8Ig==", + "version": "1.56.0-alpha-1756505518000", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.56.0-alpha-1756505518000.tgz", + "integrity": "sha512-qeM+G9jA+PkA3dSYZmqKrARnIgd53B+7Lm3e52wH3rPyZJ+IBhRvhW369iN8tVJunbmsr7fkU1+05K2c7q9y0g==", "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" diff --git a/package.json b/package.json index bf1a012..1085dd6 100644 --- a/package.json +++ b/package.json @@ -43,8 +43,8 @@ "debug": "^4.4.1", "dotenv": "^17.2.0", "mime": "^4.0.7", - "playwright": "1.55.0-alpha-2025-08-12", - "playwright-core": "1.55.0-alpha-2025-08-12", + "playwright": "1.56.0-alpha-1756505518000", + "playwright-core": "1.56.0-alpha-1756505518000", "ws": "^8.18.1", "zod": "^3.24.1", "zod-to-json-schema": "^3.24.4" @@ -53,7 +53,7 @@ "@anthropic-ai/sdk": "^0.57.0", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.19.0", - "@playwright/test": "1.55.0-alpha-2025-08-12", + "@playwright/test": "1.56.0-alpha-1756505518000", "@stylistic/eslint-plugin": "^3.0.1", "@types/debug": "^4.1.12", "@types/node": "^22.13.10", diff --git a/src/tools/verify.ts b/src/tools/verify.ts index 881a1a4..93f4f1a 100644 --- a/src/tools/verify.ts +++ b/src/tools/verify.ts @@ -96,7 +96,7 @@ const verifyList = defineTabTool({ } const ariaSnapshot = `\` - list: -${itemTexts.map(t => ` - text: ${javascript.escapeWithQuotes(t, '"')}`).join('\n')} +${itemTexts.map(t => ` - listitem: ${javascript.escapeWithQuotes(t, '"')}`).join('\n')} \``; response.addCode(`await expect(page.locator('body')).toMatchAriaSnapshot(${ariaSnapshot});`); response.addResult('Done'); diff --git a/tests/verify.spec.ts b/tests/verify.spec.ts index 4831a92..91366e1 100644 --- a/tests/verify.spec.ts +++ b/tests/verify.spec.ts @@ -213,9 +213,9 @@ test('browser_verify_list_visible', async ({ client, server }) => { result: 'Done', code: expect.stringContaining(`await expect(page.locator('body')).toMatchAriaSnapshot(\` - list: - - text: "Apple" - - text: "Banana" - - text: "Cherry" + - listitem: "Apple" + - listitem: "Banana" + - listitem: "Cherry" \`);`), }); }); @@ -247,8 +247,8 @@ test('browser_verify_list_visible (partial items)', async ({ client, server }) = result: 'Done', code: expect.stringContaining(`await expect(page.locator('body')).toMatchAriaSnapshot(\` - list: - - text: "Apple" - - text: "Cherry" + - listitem: "Apple" + - listitem: "Cherry" \`);`), }); }); @@ -453,7 +453,7 @@ test('browser_verify_value (radio checked)', async ({ client, server }) => { arguments: { type: 'radio', element: 'Color radio', - ref: 'e4', + ref: 'e3', value: 'true', }, })).toHaveResponse({