Skip to content

Commit ebf9020

Browse files
authored
docs: missing line in assertions code snippet (#21781)
1 parent 66d0517 commit ebf9020

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/content/docs/browser-rendering/platform/playwright.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ interface Env {
6464

6565
export default {
6666
async fetch(request: Request, env: Env) {
67-
67+
const { searchParams } = new URL(request.url);
6868
const todos = searchParams.getAll('todo');
6969

7070
const browser = await launch(env.MYBROWSER);
@@ -182,7 +182,6 @@ interface Env {
182182

183183
export default {
184184
async fetch(request: Request, env: Env) {
185-
186185
const browser = await launch(env.MYBROWSER);
187186
const page = await browser.newPage();
188187

@@ -305,4 +304,4 @@ Note that `@cloudflare/playwright` is in beta. The following capabilities are no
305304
- [Network](https://playwright.dev/docs/next/network#network)
306305
- [Videos](https://playwright.dev/docs/next/videos)
307306

308-
This is **not an exhaustive list** — expect rapid changes as we work toward broader parity with the original feature set. You can also check [latest test results](https://playwright-full-test-report.pages.dev/) for a granular up to date list of the features that are fully supported.
307+
This is **not an exhaustive list** — expect rapid changes as we work toward broader parity with the original feature set. You can also check [latest test results](https://playwright-full-test-report.pages.dev/) for a granular up to date list of the features that are fully supported.

0 commit comments

Comments
 (0)