Atlas › 26 Testing Like a Senior › Authentication and Navigation Patterns☰ Read as one page
Authentication and Navigation Patterns
2.1OverviewTwo of the most common anti-patterns in browser test automation appear in the first tests every QA engineer writes: logging in through the…2.2The Login Page LieAnti-Pattern: Every test begins by navigating to the login page, typing a username and password, and clicking "Sign in." A 500-test suite…2.3Page Objects as Behaviors, Not SelectorsAnti-Pattern: Page objects are thin wrappers around selectors — loginPage.emailInput, loginPage.passwordInput, loginPage.submitButton…2.4Key Takeaways- Authenticate via API or saved state — only the login test should exercise the login page - Page objects should expose behaviors (loginAs…