docs: storageState caveat (#15395)

Resolves #15393.
This commit is contained in:
Ross Wollman 2022-07-06 09:59:56 -07:00 committed by GitHub
parent 0142bdce76
commit 12c7e82fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,8 @@ test('test', async ({ page }) => {
:::note
If you can log in once and commit the `storageState.json` into the repository, you won't need the global
setup at all, just specify the `storageState.json` in Playwright Config as above and it'll be picked up.
However, periodically, you may need to update the `storageState.json` file if your app requires you to re-authenticate after some amount of time. For example, if your app prompts you to sign in every week even if you're on the same computer/browser, you'll need to update `storageState.json` at least this often.
:::
### Sign in via API request