TypeScript Playwright 完全ガイド【2026年最新・v1.58+】|E2E テストと Trace Viewer の実戦パターン
Playwright の 2026 年 4 月時点の最新仕様(v1.58+)で完全解説。E2E テスト・コンポーネントテスト・API テストの書き方、ユーザー視点ロケーター(getByRole / getByLabel / getByText / getByTestId)、Web-first Assertions(toBeVisible / toHaveText / toContainClass)と auto-waiting、Fixtures(test.extend / box fixtures / testProject.workers)、storageState でのログイン状態再利用、Trace Viewer / UI Mode / Codegen / Debug モード、Aria Snapshots(toMatchAriaSnapshot)、Visual Regression(toHaveScreenshot)、Parallel 実行と Sharding、GitHub Actions での CI 統合、Page Object Model、Copy Prompt 機能(LLM 連携)まで網羅。