How to fix Playwright auth state issues when login passes but tests start logged out?
PlaywrightThis usually means storageState was saved in one context but not loaded in the project that runs your tests.
Create auth state in setup and reference the same file from use.storageState.
// playwright.config.ts
use: {
storageState: 'playwright/.auth/user.json',
}
Common mistake: saving state under one relative path and loading from another.