mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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;
|
||||
```
|
||||
|
||||
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
|
||||
/** @type {import('playwright').Page} **/
|
||||
/** @type {import('playwright').Page} */
|
||||
let page;
|
||||
```
|
||||
|
||||
@ -125,4 +125,4 @@ beforeAll(async() => {
|
||||
```
|
||||
|
||||
Then set `BROWSER=firefox` to run your tests with firefox, or any other browser.
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user