Skip to content

Commit e585c61

Browse files
committed
Add a small clarification about the location of the sample tests
1 parent 32aabf7 commit e585c61

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/content/5/en/part5d.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ Tests can also be run via the graphical UI with the command:
139139
npm 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

147148
test('has title', async ({ page }) => {
148149
await page.goto('https://playwright.dev/'); // highlight-line

src/content/5/fi/osa5d.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ Testit voidaan myös suorittaa graafisen UI:n kautta komennolla
102102
npm 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

110111
test('has title', async ({ page }) => {
111112
await page.goto('https://playwright.dev/'); // highlight-line

0 commit comments

Comments
 (0)