Playwright toHaveScreenshotの.png拡張子問題を解決
2026年1月24日
Playwrightの`toHaveScreenshot`で出る「Screenshot name "..." must have '.png' extension」の原因と解決方法を解説。`.png`拡張子の指定方法や`snapshotPathTemplate`の設定例も紹介します。
Playwrightの`toHaveScreenshot`で出る「Screenshot name "..." must have '.png' extension」の原因と解決方法を解説。`.png`拡張子の指定方法や`snapshotPathTemplate`の設定例も紹介します。