diff --git a/docs/src/library-js.md b/docs/src/library-js.md index 8dbe229738..0da6adabb1 100644 --- a/docs/src/library-js.md +++ b/docs/src/library-js.md @@ -1,6 +1,6 @@ --- id: library -title: "Playwright Library" +title: "Overview" --- Playwright can either be used as a part of the [Playwright Test](./intro.md), or as a Playwright Library (this guide). If you are working on an application that utilizes Playwright capabilities or you are using Playwright with another test runner, read on. diff --git a/docs/src/test-auth-js.md b/docs/src/test-auth-js.md index c8e5c72c07..edc8a8f7a2 100644 --- a/docs/src/test-auth-js.md +++ b/docs/src/test-auth-js.md @@ -158,7 +158,7 @@ If you can log in once and commit the `storageState.json` into the repository, y setup at all, just specify the `storageState.json` in Playwright Config as above and it'll be picked up. ::: -### Multiple signed in roles +## Multiple signed in roles Sometimes you have more than one signed-in user in your end to end tests. You can achieve that via logging in for these users multiple times in globalSetup and saving that state into different files. @@ -236,7 +236,7 @@ test.describe(() => { }); ``` -### Reuse the signed in page in multiple tests +## Reuse the signed in page in multiple tests Although discouraged, sometimes it is necessary to sacrifice the isolation and run a number of tests in the same page. In that case, you can log into that page once in `beforeAll` and then use that same