docs: assorted doc fixes

This commit is contained in:
Pavel Feldman 2021-09-21 15:02:47 -07:00
parent 4af576d0c7
commit d4073e8214
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
--- ---
id: library 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. 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.

View file

@ -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. 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. 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 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 in the same page. In that case, you can log into that page once in `beforeAll` and then use that same