File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -139,10 +139,11 @@ Tests can also be run via the graphical UI with the command:
139139npm run test -- --ui
140140```
141141
142- Sample tests look like this:
142+ Sample tests in the file tests/example.spec.js look like this:
143143
144144``` js
145- const { test , expect } = require (' @playwright/test' );
145+ // @ts-check
146+ import { test , expect } from ' @playwright/test' ;
146147
147148test (' has title' , async ({ page }) => {
148149 await page .goto (' https://playwright.dev/' ); // highlight-line
Original file line number Diff line number Diff line change @@ -102,10 +102,11 @@ Testit voidaan myös suorittaa graafisen UI:n kautta komennolla
102102npm run test -- --ui
103103```
104104
105- Esimerkkitestit näyttävät seuraavanlaisilta:
105+ Esimerkkitestit tiedostossa _ tests/example.spec.js _ näyttävät seuraavanlaisilta:
106106
107107``` js
108- const { test , expect } = require (' @playwright/test' );
108+ // @ts-check
109+ import { test , expect } from ' @playwright/test' ;
109110
110111test (' has title' , async ({ page }) => {
111112 await page .goto (' https://playwright.dev/' ); // highlight-line
You can’t perform that action at this time.
0 commit comments