End-to-end testing often requires simulating different user roles—admin, customer, or moderator—on a web application. Manually logging in each time can be inefficient, and reusing sessions improperly can lead to flaky tests. Fortunately, Playwright p...