From 23948c53b7496ac2d5e2e030146fa0e7354ea563 Mon Sep 17 00:00:00 2001 From: Simon Siefke Date: Mon, 16 Jan 2023 11:16:37 +0100 Subject: [PATCH] docs(writing-tests): fix syntax error (#20123) fixes #20122 --- docs/src/writing-tests-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/writing-tests-js.md b/docs/src/writing-tests-js.md index c7c483389e..4f6e65aff8 100644 --- a/docs/src/writing-tests-js.md +++ b/docs/src/writing-tests-js.md @@ -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/');