## 事象 [[🦉nuxt2-vuetify2-playwright-sandbox]]の`413de5f02e7affb8f301396929ca383dc967696e`リビジョンを使う。 まずは起動。 ```console npm run dev ``` そして[[Playwright]]のテスト実行。 ```console npm run test:e2e ``` [[UIモード (Playwright)|UIモード]]の画面から全テストを実行する。 もうすぐ20テストに差し掛かるというところで以下のようなエラーが出て落ちる。 ``` node:events:491 throw er; // Unhandled 'error' event ^ Error: EPERM: operation not permitted, stat 'C:\Users\syoum\work\nuxt2-vuetify2-playwright-sandbox\test-results\.playwright-artifacts-0\30d0dcf499daa6007fec7c67599ede67.zip' Emitted 'error' event on FSWatcher instance at: at FSWatcher.emitWithAll (C:\Users\syoum\work\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:540:8) at awfEmit (C:\Users\syoum\work\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:599:14) at C:\Users\syoum\work\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:714:43 at FSReqCallback.oncomplete (node:fs:207:21) { errno: -4048, code: 'EPERM', syscall: 'stat', path: 'C:\\Users\\syoum\\work\\nuxt2-vuetify2-playwright-sandbox\\test-results\\.playwright-artifacts-0\\30d0dcf499daa6007fec7c67599ede67.zip' } Node.js v18.12.0 ``` ### 備考 - 直列実行するため[[ファイル内テストの実行並列数を指定 (Playwright)|並列数(worker数)を指定]]してもだめ - [[UIモード (Playwright)|UIモード]]をオフにすると (`npx playwright test`) 最後まで動く ## 原因 不明...。Issueを作成した。 <div class="link-card"> <div class="link-card-header"> <img src="https://github.githubassets.com/favicons/favicon.svg" class="link-card-site-icon"/> <span class="link-card-site-name">GitHub</span> </div> <div class="link-card-body"> <div class="link-card-content"> <div> <p class="link-card-title">[BUG] It always fails at the same point when I execute all tests with the UI mode · Issue #22301 · microsoft/playwright</p> </div> <div class="link-card-description"> System info Playwright Version: v1.32.2 Operating System: Windows 11 Browser: All Node.js 18.12.0 Po... </div> </div> <img src="https://opengraph.githubassets.com/254898fc0b56a47fb0aeb6a127a3e83bfd270c59f38855a82ce8c6c3a76839f1/microsoft/playwright/issues/22301" class="link-card-image" /> </div> <a href="https://github.com/microsoft/playwright/issues/22301"></a> </div> [[Nuxt2]]のエラーハンドリングによる問題らしい。今後サポートが切れることを考えると起票は微妙だ...。事実確認して返信する。 とりあえず[[Playwright]]に落ち度はないとのことでクローズになった。 ## 解決方法 - 大量のテストを[[UIモード (Playwright)|UIモード]]で実行しないようにする - #todo [[Nuxt2]]のコードを変更する