mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-12-25 22:19:01 +00:00
workflow(ci): AI test cases (#154)
* fix: AI test * chore: add more links in README
This commit is contained in:
parent
324a337bac
commit
48fa92f037
@ -39,6 +39,9 @@ Midscene.jsは、自然言語を使用してページを制御し、アサーシ
|
||||
* [ホームページ: https://midscenejs.com](https://midscenejs.com/)
|
||||
* [クイックスタート](https://midscenejs.com/quick-experience.html)
|
||||
* [APIリファレンス](https://midscenejs.com/api.html)
|
||||
* [コマンドラインツール](https://midscenejs.com/cli.html)
|
||||
* [Puppeteerとの統合](https://midscenejs.com/integrate-with-puppeteer.html)
|
||||
* [Playwrightとの統合](https://midscenejs.com/integrate-with-playwright.html)
|
||||
|
||||
## ライセンス
|
||||
|
||||
|
||||
@ -41,6 +41,9 @@ Midscene.js is an AI-powered automation SDK can control the page, perform assert
|
||||
* [Home Page: https://midscenejs.com](https://midscenejs.com/)
|
||||
* [Quick Experience By Chrome Extension](https://midscenejs.com/quick-experience.html)
|
||||
* [API Reference](https://midscenejs.com/api.html)
|
||||
* [Command Line Tools](https://midscenejs.com/cli.html)
|
||||
* [Integrate with Puppeteer](https://midscenejs.com/integrate-with-puppeteer.html)
|
||||
* [Integrate with Playwright](https://midscenejs.com/integrate-with-playwright.html)
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@ -40,6 +40,10 @@ Midscene.js 是一个由 AI 驱动的自动化 SDK,能够使用自然语言对
|
||||
* [官网首页: https://midscenejs.com](https://midscenejs.com/zh)
|
||||
* [使用 Chrome 插件体验](https://midscenejs.com/zh/quick-experience.html)
|
||||
* [API 文档](https://midscenejs.com/zh/api.html)
|
||||
* [命令行工具](https://midscenejs.com/zh/cli.html)
|
||||
* [集成到 Puppeteer](https://midscenejs.com/zh/integrate-with-puppeteer.html)
|
||||
* [集成到 Playwright](https://midscenejs.com/zh/integrate-with-playwright.html)
|
||||
|
||||
|
||||
## 授权许可
|
||||
|
||||
|
||||
@ -17,7 +17,6 @@ describe(
|
||||
|
||||
const agent = new StaticPageAgent(page);
|
||||
const content = await agent.aiQuery('tell me the content of the page');
|
||||
console.log('content', content);
|
||||
expect(content).toBeDefined();
|
||||
|
||||
agent.writeOutActionDumps();
|
||||
@ -32,7 +31,7 @@ describe(
|
||||
throw new Error('port is not set');
|
||||
}
|
||||
|
||||
const res = await fetch(`http://localhost:${port}/playground/execute`, {
|
||||
const res = await fetch(`http://localhost:${port}/execute`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@ -45,7 +44,6 @@ describe(
|
||||
});
|
||||
|
||||
const data = await res.json();
|
||||
console.log('data', data);
|
||||
expect(data.result).toBeDefined();
|
||||
expect(data.error).toBeFalsy();
|
||||
server.close();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user