docs(writing-tests): fix syntax error (#20123)

fixes #20122
This commit is contained in:
Simon Siefke 2023-01-16 11:16:37 +01:00 committed by GitHub
parent e780a5c1ac
commit 23948c53b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ timeouts and racy checks in their tests altogether.
Take a look at the following example to see how to write a test.
```js
import { test, expect } = require('@playwright/test');
import { test, expect } from '@playwright/test';
test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');