Книги и журналы » Компьютерная литература » Программирование (книги)
Practical Playwright TestГод издания: 2026
Автор: Greffier J.-F.
Издательство: Apress
ISBN: 979-8-8688-2160-8
Язык: Английский
Формат: PDF/EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 288
Описание: Gain cutting-edge skills in crafting reliable, efficient end-to-end tests with Playwright Test. This book is your comprehensive guide to Playwright Test that will help you to create and debug blazing fast tests, and integrate and customize Playwright Test to fit your testing needs.
The book begins with an introduction to Playwright and teaches you the fundamentals of how to write tests efficiently. The book then gets into concepts like Locators and explains how to set up a CI using Playwright Test. After this, you will gain experience in two important aspects of testing – speed and customization. You will then be taken through a deep dive into Fixtures followed by an exploration of strategies like mocking and emulation through which you can achieve more control of the testing environment. The book also provides a detailed discussion on flakiness and how Playwright Test can help you with it. It then teaches you how to automate tests and ends with a discussion on how Playwright Test changes the landscape of testing, and how to integrate it in your daily practices and testing strategy.
This book is primarily meant for front-end or full-stack developers that want to further progress by mastering end-to-end testing with Playwright Test. Quality Assurance professionals should also find value in this work, as it goes in-depth with Playwright Test techniques, automation, and testing strategy. Actually, this book is for any individual contributors that care deeply about high-quality software.
You don't have to be an expert front-end developer, but some knowledge of HTML, CSS, and TypeScript is needed. A curiosity toward testing principles is a plus. Being familiar with unit test frameworks like Jest or Vitest is helpful, but experience with end-to-end testing tools is not necessary. Playwright officially supports TypeScript, Python, Java, and .Net. However, I chose to focus on the TypeScript flavor and its test runner: Playwright Test.
By reading this book, you will become an expert in the specificities of Playwright Test and how to test critical user flows, reduce bugs in production, and ultimately ship reliable software with confidence.
What You Will Learn:
- Create and debug reliable end-to-end tests efficiently with the perfect locators
- Set up a CI using Playwright Test to get results, test reports and useful traces
- Understand how to use and write Fixtures
- Customize Playwright to fit your needs
[spoiler="Примеры страниц (скриншоты)"]

[/spoiler]
[spoiler="Оглавление"]
About the Author xiii
About the Technical Reviewer xv
Acknowledgments xvii
Introduction xix
Chapter 1: Getting Started 1
Chapter 2: Write Tests Efficiently 17
Chapter 3: Locators 59
Chapter 4: Continuous Integration 81
Chapter 5: Make It Fast 107
Chapter 6: Extending Playwright Test 131
Chapter 7: Fixtures Deep Dive 153
Chapter 8: Mocking and Emulation 177
Chapter 9: Gain Confidence Thanks to Reliable Tests 199
Chapter 10: Automation and More with Playwright 223
Chapter 11: Beyond End-to-End Testing 237
Chapter 12: Solving the Test Frameworks Puzzle 257
Index 269
[/spoiler]