agoda
Read post

Migrating from Enzyme to Playwright: How We Modernized Frontend Testing at Agoda

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 integrating accessibility and analytics checks into automated workflows. Key improvements include cross-browser and RTL/LTR layout testing, Docker-based baseline standardization for consistent visual testing, and performance optimizations through caching and component consolidation. While Playwright requires more setup and resources per test, it provides broader coverage, better stability through actionability checks, and catches visual regressions that code assertions miss.

    #react#testing#frontend#vite
Oct 22, 2025•12m read time•From medium.com
Post cover image
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-offsConclusion
4.4K Impressions
agoda's image
agoda

Agoda Engineering Blog offers insights, technical articles, and updates on building scalable and hig...

15 Followers

•

44 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard