This video will explain about how to save authenticate state and use it in other tests without logging in explicitly.
Reference:
https://playwright.dev/docs/codegen
https://github.com/MukunthanML/enterp...
Example:
npx playwright codegen github.com/microsoft/playwright --save-storage=auth.json
npx playwright codegen --load-storage=auth.json github.com/microsoft/playwright