Skip to content

Commit 66f338d

Browse files
committed
Fix code block formatting in tutorials
1 parent a00afc1 commit 66f338d

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎src/content/docs/tutorial/generate-tests-playwright-mcp.mdx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ Let's add a script to help us create and remove users for the MCP server when we
7474
const scriptArg = process.argv[2];
7575

7676
if (scriptArg !== "create" && scriptArg !== "delete") {
77-
console.error(
78-
`Error: Invalid argument "${scriptArg}". Expected "create" or "delete".`,
79-
);
80-
process.exit(1);
77+
console.error(
78+
`Error: Invalid argument "${scriptArg}". Expected "create" or "delete".`,
79+
);
80+
process.exit(1);
8181
}
8282

8383
// create or delete user based on script arg
8484

85-
````
85+
```
8686
</TabItem>
8787
<TabItem label="mcp-user.ts (Completed)">
8888
```ts
@@ -111,7 +111,7 @@ import { createUserInFile, deleteUserFromFile } from "./setup-utils";
111111
}
112112
})();
113113

114-
````
114+
```
115115

116116
</TabItem>
117117
</Tabs>
@@ -305,7 +305,7 @@ page.getByRole("heading", { name: "Team Settings" }),
305305

306306
});
307307

308-
````
308+
```
309309
</TabItem>
310310
<TabItem label="activity-section.spec.ts (Fixed)">
311311
```ts
@@ -363,7 +363,7 @@ test.describe("Activity Section", () => {
363363
// The extra step is a bit unnecessary, would be a shame if this test failed because more activities were added
364364
});
365365
});
366-
````
366+
```
367367

368368
</TabItem>
369369
</Tabs>

‎src/content/docs/tutorial/practical-playwright-setup.mdx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const testPassword = "testpassword123";
218218

219219
});
220220

221-
````
221+
```
222222
</TabItem>
223223
<TabItem label="teardown.spec.ts">
224224
```ts
@@ -248,7 +248,7 @@ test("delete current user account", async ({ page }) => {
248248
).toBeVisible();
249249
});
250250
});
251-
````
251+
```
252252

253253
</TabItem>
254254
<TabItem label="example.spec.ts">
@@ -271,7 +271,7 @@ await page.goto("/dashboard");
271271

272272
});
273273

274-
````
274+
```
275275
</TabItem>
276276
</Tabs>
277277

@@ -308,7 +308,7 @@ export default defineConfig({
308308
},
309309
],
310310
});
311-
````
311+
```
312312

313313
### Creating / deleting users through an API
314314

@@ -403,7 +403,7 @@ export default async function globalSetup(config: FullConfig) {
403403
404404
}
405405
406-
````
406+
```
407407
</TabItem>
408408
<TabItem label="global-setup.ts (Completed)">
409409
```ts
@@ -460,7 +460,7 @@ function writeSessionFile(session: string, baseURL: string) {
460460
}),
461461
);
462462
}
463-
````
463+
```
464464

465465
</TabItem>
466466
</Tabs>
@@ -483,7 +483,7 @@ export default async function globalTeardown(config: FullConfig) {
483483

484484
}
485485

486-
````
486+
```
487487
</TabItem>
488488
<TabItem label="global-teardown.ts (Completed)">
489489
```ts
@@ -514,7 +514,7 @@ export default async function globalTeardown(config: FullConfig) {
514514
console.error("[globalTeardown] error deleting user:", error);
515515
}
516516
}
517-
````
517+
```
518518

519519
</TabItem>
520520
</Tabs>

‎src/content/docs/tutorial/understanding-test-results.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ page.getByRole("heading", { name: "Team Settings" }),
8787

8888
});
8989

90-
````
90+
```
9191
</TabItem>
9292
</Tabs>
9393

@@ -100,7 +100,7 @@ export default defineConfig({
100100
trace: "retain-on-failure",
101101
},
102102
});
103-
````
103+
```
104104

105105
Now let's try running the tests again. We will have to run them many times to simulate the flakiness.
106106

0 commit comments

Comments
 (0)