Home / Companies / Checkly / Blog / Post Details
Content Deep Dive

Why "page.goto()" is slowing down your Playwright tests

Blog post from Checkly

Post Details
Company
Date Published
Author
Stefan Judis
Word Count
1,954
Language
English
Hacker News Points
2
Summary

The text discusses the importance of stability and speed in end-to-end tests for websites, focusing on Playwright synthetic monitoring with Checkly. It highlights that the `page.goto()` action can cause delays due to waiting for all resources to be loaded, which is not necessary for testing UI actions and state changes. The author suggests using `waitUntil: "commit"` or `domcontentloaded` instead of `load` to reduce test execution times without compromising on test coverage. However, it also emphasizes the importance of monitoring network dependencies when adopting end-to-end testing with Playwright, as it can provide valuable insights into site performance and infrastructure issues. The text concludes that there is no one-size-fits-all solution, and the best approach depends on individual project requirements and priorities.