workflow(ci): AI test cases (#154)

* fix: AI test

* chore: add more links in README
This commit is contained in:
yuyutaotao 2024-11-13 15:01:21 +08:00 committed by GitHub
parent 324a337bac
commit 48fa92f037
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 3 deletions

View File

@ -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)
## ライセンス

View File

@ -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

View File

@ -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)
## 授权许可

View File

@ -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();