From 12c7e82fb785f33cd60c802d42ad79d890355701 Mon Sep 17 00:00:00 2001 From: Ross Wollman Date: Wed, 6 Jul 2022 09:59:56 -0700 Subject: [PATCH] docs: storageState caveat (#15395) Resolves #15393. --- docs/src/test-auth-js.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/test-auth-js.md b/docs/src/test-auth-js.md index e6b2422287..d04b697675 100644 --- a/docs/src/test-auth-js.md +++ b/docs/src/test-auth-js.md @@ -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