Reuse Playwright Code across Files and Tests with Fixtures
Learn how to leverage Playwright test fixtures to DRY your code and reuse it across tests and spec files.
Playwright docs for fixtures: https://playwright.dev/docs/test-fixtures#creating-a-fixture