Recently, I made the switch from an older, less powerful Mac Mini to the high-performing Mac Studio with an M1 Max chip.
Unexpectedly, my Playwright end-to-end tests have started running at a sluggish pace.
Upon further investigation in debug mode, I noticed that the page I am testing is taking approximately 15 seconds to appear in the browser. Previously, on my Intel-based Mac Mini, the page would load in just 1-2 seconds.
While running the tests in debug mode, I verified the version of Chrome being used and found that it was optimized for the translated Intel version, rather than the arm64 (Apple Silicon) version. Interestingly, launching Chrome from the Apps list utilizes the arm64 version as intended.
Upon installation of Chrome, I opted for the universal version.
Is there a way to compel Playwright to utilize the arm64 version of Chrome? I am speculating that this discrepancy may be attributing to the sluggish loading of the tests.