Skip to content

Commit cc92de1

Browse files
committed
fix errors
1 parent 3467fee commit cc92de1

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

articles/playwright-testing/how-to-manage-authentication.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,27 +79,29 @@ To enable authentication using access tokens:
7979

8080

8181
1. Set up your environment
82-
83-
To set up your environment, you have to configure the `PLAYWRIGHT_SERVICE_ACCESS_TOKEN` environment variable with the value you obtained in the previous steps. Make sure this environment variable is available in your setup where you are running tests.
84-
8582
::: zone pivot="playwright-test-runner"
83+
To set up your environment, you have to configure the `PLAYWRIGHT_SERVICE_ACCESS_TOKEN` environment variable with the value you obtained in the previous steps. Make sure this environment variable is available in your setup where you are running tests.
8684

87-
We recommend that you use the `dotenv` module to manage your environment. With `dotenv`, you define your environment variables in the `.env` file.
85+
We recommend that you use the `dotenv` module to manage your environment. With `dotenv`, you define your environment variables in the `.env` file.
8886

89-
1. Add the `dotenv` module to your project:
87+
1. Add the `dotenv` module to your project:
9088

91-
```shell
92-
npm i --save-dev dotenv
93-
```
89+
```shell
90+
npm i --save-dev dotenv
91+
```
9492

95-
1. Create a `.env` file alongside the `playwright.config.ts` file in your Playwright project:
96-
97-
```
98-
PLAYWRIGHT_SERVICE_ACCESS_TOKEN={MY-ACCESS-TOKEN}
99-
```
93+
1. Create a `.env` file alongside the `playwright.config.ts` file in your Playwright project:
94+
95+
```
96+
PLAYWRIGHT_SERVICE_ACCESS_TOKEN={MY-ACCESS-TOKEN}
97+
```
98+
99+
Make sure to replace the `{MY-ACCESS-TOKEN}` text placeholder with the value you copied earlier.
100100

101-
Make sure to replace the `{MY-ACCESS-TOKEN}` text placeholder with the value you copied earlier.
101+
::: zone-end
102102

103+
::: zone pivot="nunit-test-runner"
104+
To set up your environment, you have to configure the `PLAYWRIGHT_SERVICE_ACCESS_TOKEN` environment variable with the value you obtained in the previous steps. Make sure this environment variable is available in your setup where you are running tests.
103105
::: zone-end
104106

105107
## Run tests on the service and publish results

0 commit comments

Comments
 (0)