Agoda migrated their frontend testing from Enzyme to Playwright to address limitations in cross-browser support, asynchronous interactions, and visual regression detection. The migration involved switching from Webpack to Vite for faster development, implementing screenshot-based testing to reduce test count by 6-7×, and
Table of contents
IntroductionWhy did we choose Playwright?What Changed in PracticeSetting Up Playwright with ViteMigrating from Webpack to ViteGet Agoda Engineering’s stories in your inboxKey Migration StepsPlaywright + Vite Setup GuidePlaywright Report Generation, Usage, and DebuggingPerformance OptimizationLimitations and Trade-offsConclusionSort: