Authentication
Authentication is an inseparable part of end-to-end tests just like it is an inseparable part of your applications. But there's a catch. Authentication encompases two distinct areas from the testing perspective:
- Authentication as a feature. These are the authentication options you provide to your users (e.g. email+password, 2FA, passkeys, third-party providers);
- Authentication as a dependency. The functionality behind authentication (e.g. managing resources, performing authorized operations).
In this block, you will learn about the difference between testing authentication as a feature and testing features that are behind authentication with Playwright.