From 4cabe6081478da69947fdf52523d7cbcc96c0a05 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 11 Mar 2024 19:40:36 -0700 Subject: [PATCH] docs(auth): small note about UI mode --- docs/src/auth.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/src/auth.md b/docs/src/auth.md index 6600846773..e6a92126f5 100644 --- a/docs/src/auth.md +++ b/docs/src/auth.md @@ -113,6 +113,13 @@ test('test', async ({ page }) => { }); ``` +### Authenticating in UI mode +* langs: js + +UI mode will not run the `setup` project by default to improve testing speed. We recommend to authenticate by manually running the `auth.setup.ts` from time to time, whenever existing authentication expires. + +First [enable the `setup` project in the filters](https://playwright.dev/docs/test-ui-mode#filtering-tests), then click the triangle button next to `auth.setup.ts` file, and then disable the `setup` project in the filters again. + ## Moderate: one account per parallel worker * langs: js @@ -457,6 +464,8 @@ test.describe(() => { }); ``` +See also about [authenticating in the UI mode](#authenticating-in-ui-mode). + ### Testing multiple roles together * langs: js