Skip to content

Commit 826db3e

Browse files
authored
fix(docs): correct code block formatting in integrate-with-playwright.mdx (#990)
1 parent e37b691 commit 826db3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/site/docs/zh/integrate-with-playwright.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,17 @@ export const test = base.extend<PlayWrightAiFixtureType>(
200200

201201
除了上述暴露的快捷方法之外,如果还需要调用其它 agent 提供的 [API](./api.mdx),请使用 `agentForPage` 获取 `PageAgent` 实例,使用 `PageAgent` 调用 API 进行交互:
202202

203-
````typescript
203+
```typescript
204204
test('case demo', async ({ agentForPage, page }) => {
205205
const agent = await agentForPage(page);
206206

207207
await agent.logScreenshot();
208208
const logContent = agent._unstableLogContent();
209209
console.log(logContent);
210210
});
211+
```
212+
213+
211214

212215
#### 示例代码
213216

0 commit comments

Comments
 (0)