Skip to content

Commit

Permalink
chore: delete unless log
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw committed Jul 29, 2024
1 parent 3525c33 commit 4623c4d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/web-integration/src/playwright/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,8 @@ export const PlaywrightAiFixture = () => {

return {
ai: async ({ page }: any, use: any, testInfo: TestInfo) => {
console.log('start', testInfo.title, {
file: testInfo.file,
line: testInfo.line,
});
const agent = agentForPage(page, testInfo.testId);
await use(async (taskPrompt: string, opts?: { type?: 'action' | 'query' }) => {
console.log('use', testInfo.title, {
file: testInfo.file,
line: testInfo.line,
});
const { groupName, caseName } = groupAndCaseForTest(testInfo);
const actionType = opts?.type || 'action';
const result = await agent.ai(taskPrompt, actionType, caseName, groupName);
Expand All @@ -63,10 +55,6 @@ export const PlaywrightAiFixture = () => {
}),
});
}
console.log('end', testInfo.title, {
file: testInfo.file,
line: testInfo.line,
});
},
aiAction: async ({ page }: any, use: any, testInfo: TestInfo) => {
const agent = agentForPage(page, testInfo.testId);
Expand Down

0 comments on commit 4623c4d

Please sign in to comment.