プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

update playwright inner-text test

Kohei Watanabe (May 24, 2026, 10:53 PM +0900) 32b8e82c 7124f39f

+69 -81
+14 -3
playwright/README.md
··· 11 11 ## Usage 12 12 13 13 ```bash 14 - npm install 15 - npx playwright test 16 - ``` 14 + pnpm install 15 + # Ubuntu 26.04 LTS 16 + PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu24.04-x64 pnpm exec playwright install 17 + # Others 18 + pnpm exec playwright install 19 + pnpm test 20 + ``` 21 + 22 + WebKit のコミットを追っていると互換性を高めるための修正進んでいるみたい 23 + https://github.com/WebKit/WebKit/commits/main/Source/WebCore/editing/TextIterator.cpp 24 + WPT: https://wpt.fyi/results/html/dom/elements/the-innertext-and-outertext-properties 25 + Bugs: [289597 – (innerText) ☂️ `innerText` interop issues and related bugs](https://bugs.webkit.org/show_bug.cgi?id=289597) 26 + 27 + 一部のケースはパスするようになっていた
+1 -1
playwright/inner-text.test.ts
··· 6 6 7 7 // playwright test --browser=chromium : pass 8 8 // playwright test --browser=firefox : pass 9 - // playwright test --browser=webkit : fail (return `1\n`) 9 + // playwright test --browser=webkit : pass 10 10 expect(await page.innerText("first-test")).toBe(`1`); 11 11 }); 12 12
-75
playwright/package-lock.json
··· 1 - { 2 - "name": "playwright", 3 - "lockfileVersion": 3, 4 - "requires": true, 5 - "packages": { 6 - "": { 7 - "devDependencies": { 8 - "@playwright/test": "^1.48.1" 9 - } 10 - }, 11 - "node_modules/@playwright/test": { 12 - "version": "1.48.1", 13 - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.48.1.tgz", 14 - "integrity": "sha512-s9RtWoxkOLmRJdw3oFvhFbs9OJS0BzrLUc8Hf6l2UdCNd1rqeEyD4BhCJkvzeEoD1FsK4mirsWwGerhVmYKtZg==", 15 - "dev": true, 16 - "license": "Apache-2.0", 17 - "dependencies": { 18 - "playwright": "1.48.1" 19 - }, 20 - "bin": { 21 - "playwright": "cli.js" 22 - }, 23 - "engines": { 24 - "node": ">=18" 25 - } 26 - }, 27 - "node_modules/fsevents": { 28 - "version": "2.3.2", 29 - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 30 - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 31 - "dev": true, 32 - "hasInstallScript": true, 33 - "license": "MIT", 34 - "optional": true, 35 - "os": [ 36 - "darwin" 37 - ], 38 - "engines": { 39 - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 40 - } 41 - }, 42 - "node_modules/playwright": { 43 - "version": "1.48.1", 44 - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.48.1.tgz", 45 - "integrity": "sha512-j8CiHW/V6HxmbntOfyB4+T/uk08tBy6ph0MpBXwuoofkSnLmlfdYNNkFTYD6ofzzlSqLA1fwH4vwvVFvJgLN0w==", 46 - "dev": true, 47 - "license": "Apache-2.0", 48 - "dependencies": { 49 - "playwright-core": "1.48.1" 50 - }, 51 - "bin": { 52 - "playwright": "cli.js" 53 - }, 54 - "engines": { 55 - "node": ">=18" 56 - }, 57 - "optionalDependencies": { 58 - "fsevents": "2.3.2" 59 - } 60 - }, 61 - "node_modules/playwright-core": { 62 - "version": "1.48.1", 63 - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.48.1.tgz", 64 - "integrity": "sha512-Yw/t4VAFX/bBr1OzwCuOMZkY1Cnb4z/doAFSwf4huqAGWmf9eMNjmK7NiOljCdLmxeRYcGPPmcDgU0zOlzP0YA==", 65 - "dev": true, 66 - "license": "Apache-2.0", 67 - "bin": { 68 - "playwright-core": "cli.js" 69 - }, 70 - "engines": { 71 - "node": ">=18" 72 - } 73 - } 74 - } 75 - }
+52
playwright/pnpm-lock.yaml
··· 1 + lockfileVersion: '9.0' 2 + 3 + settings: 4 + autoInstallPeers: true 5 + excludeLinksFromLockfile: false 6 + 7 + importers: 8 + 9 + .: 10 + devDependencies: 11 + '@playwright/test': 12 + specifier: ^1.48.1 13 + version: 1.60.0 14 + 15 + packages: 16 + 17 + '@playwright/test@1.60.0': 18 + resolution: {integrity: sha512-O71yZIbAh/PxDMNGns37GHBIfrVkEVyn+AXyIa5dOTfb4/xNvRWV+Vv/NMbNCtODB/pO7vLlF2OTmMVLhmr7Ag==} 19 + engines: {node: '>=18'} 20 + hasBin: true 21 + 22 + fsevents@2.3.2: 23 + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} 24 + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} 25 + os: [darwin] 26 + 27 + playwright-core@1.60.0: 28 + resolution: {integrity: sha512-9bW6zvX/m0lEbgTKJ6YppOKx8H3VOPBMOCFh2irXFOT4BbHgrx5hPjwJYLT40Lu+4qtD36qKc/Hn56StUW57IA==} 29 + engines: {node: '>=18'} 30 + hasBin: true 31 + 32 + playwright@1.60.0: 33 + resolution: {integrity: sha512-hheHdokM8cdqCb0lcE3s+zT4t4W+vvjpGxsZlDnikarzx8tSzMebh3UiFtgqwFwnTnjYQcsyMF8ei2mCO/tpeA==} 34 + engines: {node: '>=18'} 35 + hasBin: true 36 + 37 + snapshots: 38 + 39 + '@playwright/test@1.60.0': 40 + dependencies: 41 + playwright: 1.60.0 42 + 43 + fsevents@2.3.2: 44 + optional: true 45 + 46 + playwright-core@1.60.0: {} 47 + 48 + playwright@1.60.0: 49 + dependencies: 50 + playwright-core: 1.60.0 51 + optionalDependencies: 52 + fsevents: 2.3.2
+2 -2
playwright/test.html
··· 1 - <!DOCTYPE html> 1 + <!doctype html> 2 2 <html> 3 3 <head> 4 4 <meta charset="UTF-8" /> ··· 9 9 <first-test><div>1</div></first-test> 10 10 <second-test> 11 11 <div>2</div> 12 - <div></div> 12 + <img alt="" src="about:blank" /> 13 13 </second-test> 14 14 </body> 15 15 </html>