@@ -79,27 +79,29 @@ To enable authentication using access tokens:
79
79
80
80
81
81
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
-
85
82
::: 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 .
86
84
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 .
88
86
89
- 1. Add the ` dotenv ` module to your project :
87
+ 1. Add the ` dotenv ` module to your project :
90
88
91
- ` ` ` shell
92
- npm i --save-dev dotenv
93
- ` ` `
89
+ ` ` ` shell
90
+ npm i --save-dev dotenv
91
+ ` ` `
94
92
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 .
100
100
101
- Make sure to replace the ` {MY-ACCESS-TOKEN} ` text placeholder with the value you copied earlier .
101
+ ::: zone - end
102
102
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 .
103
105
::: zone - end
104
106
105
107
## Run tests on the service and publish results
0 commit comments