Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
【E2Eテスト編】Playwright + Next.js App Router によるフロントエンドテスト
Rating: 3.9 out of 5(69 ratings)
991 students

【E2Eテスト編】Playwright + Next.js App Router によるフロントエンドテスト

PlaywrightによるフロントエンドE2Eテスト手法を習得。認証情報有無のテストやCRUDシミュレーションなど。
Created byZin nux
Last updated 2/2025
Japanese

What you'll learn

  • Playwrightによるフロントエンド E2Eテスト手法
  • storageStateを使用したテスト用cookieの実装方法
  • 認証保護されたAPI routesの実装 (Nextjs)
  • zod による入力バリデーション (API routes)

Course content

3 sections13 lectures2h 3m total length
  • Overview3:37
  • GitHub repository0:09
  • Node version0:03

Requirements

  • macOS (推奨)
  • Nextjs v13 app dir の基礎理解

Description

本コースでは、Microsoft製のE2Eテストのフレームワーク Playwrightを使用したフロントエンドテスト手法について学習します。Playwrightは、Kent C. Dodds氏(React-testing-libraryの作者 + Remixのmain contributor)も推している注目技術です。E2Eテストは、CypressからPlaywrightへの移行トレンドが予想されます。


テスト対象のアプリケーションは、

  • フロントエンド: Next.js 13 app dir

  • バックエンド: Next.jsのAPI routes (認証 + zodによる入力値バリデーション付き)

を使用します。


  • Playwrightを使用したフロントエンドE2Eテスト(Next.js app dir)

  • storageStateを使用したテスト用認証情報の作成(cookie)

  • 認証情報有無のテストケース実装

  • CRUD操作のテストケース実装

  • NextAuthを使用したGitHub認証の実装

  • Server componentにおける認証方法 (cookie)

  • 認証保護されたAPI routesの実装

  • zodによる入力値バリデーションの実装 (API routes)

Who this course is for:

  • フロントエンドエンジニア