docs(test-runners.md): add WebStorm comment (#2279)
This commit is contained in:
parent
125312f78b
commit
9e2733d520
|
|
@ -105,9 +105,9 @@ If using TypeScript, add types to your variables like:
|
||||||
let page: import('playwright').Page;
|
let page: import('playwright').Page;
|
||||||
```
|
```
|
||||||
|
|
||||||
If using JavaScript, you can still get nice autocompletions in VSCode by using JSDOC
|
If using JavaScript, you can still get nice autocompletions in VSCode or WebStorm by using JSDoc.
|
||||||
```js
|
```js
|
||||||
/** @type {import('playwright').Page} **/
|
/** @type {import('playwright').Page} */
|
||||||
let page;
|
let page;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -125,4 +125,4 @@ beforeAll(async() => {
|
||||||
```
|
```
|
||||||
|
|
||||||
Then set `BROWSER=firefox` to run your tests with firefox, or any other browser.
|
Then set `BROWSER=firefox` to run your tests with firefox, or any other browser.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue