Skip to content

feat: add @midscene/harmony demo examples#85

Merged
quanru merged 1 commit intomainfrom
feat/harmony-demo
Mar 2, 2026
Merged

feat: add @midscene/harmony demo examples#85
quanru merged 1 commit intomainfrom
feat/harmony-demo

Conversation

@quanru
Copy link
Collaborator

@quanru quanru commented Feb 28, 2026

Summary

  • Add HarmonyOS device automation demo examples using @midscene/harmony
  • JavaScript SDK demo: Demonstrates how to use HarmonyAgent and HarmonyDevice to automate an eBay search workflow, showcasing aiAct, aiQuery, aiAssert, aiBoolean, aiNumber, aiString, and aiLocate APIs
  • Vitest demo: Includes two test cases — a TodoMVC app interaction test and a HarmonyOS Settings page scroll demo using agentFromHdcDevice

Test plan

  • Connect a HarmonyOS device via HDC
  • Configure .env with model API credentials
  • Run npm install && npm test in harmony/javascript-sdk-demo
  • Run npm install && npm run test -- setting.test.ts in harmony/vitest-demo
  • Run npm install && npm run test -- todo.test.ts in harmony/vitest-demo

Add HarmonyOS device automation demo examples using @midscene/harmony:
- JavaScript SDK demo: eBay search with aiAct, aiQuery, aiAssert, etc.
- Vitest demo: todo list test and settings page scroll test
@quanru quanru merged commit 372e32f into main Mar 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants