miniprogram-automation

Generate Node.js and Jest scripts for WeChat mini-program E2E testing.

39|3|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/whinc/wechat-miniprogram-skills --skill miniprogram-automation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: miniprogram-automation
Source: https://github.com/whinc/wechat-miniprogram-skills/tree/main/.agents/skills/miniprogram-automation
Command: npx skills add https://github.com/whinc/wechat-miniprogram-skills --skill miniprogram-automation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates repetitive tasks in WeChat mini-program development and testing, such as generating reusable automation scripts, mocking API calls, and performing end-to-end testing.

Core Features & Use Cases

  • Script Generation: Create standalone Node.js scripts or Jest tests for automation.
  • Interaction & Validation: Automate page navigation, element interaction, data reading, and visual validation (screenshots).
  • API Mocking: Mock wx methods like request for controlled testing environments.
  • Error Handling: Includes robust error checking, logging, and cleanup procedures.
  • Use Case: Automatically test the login flow of a mini-program by filling in credentials, submitting the form, and verifying successful navigation to the dashboard, all within a script.

Quick Start

Use the miniprogram-automation skill to generate a Node.js script that navigates to '/pages/home/index', reads the page title, and takes a screenshot.

Frequently Asked Questions about miniprogram-automation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate WeChat mini-program E2E testing with Node.js scripts?

You can automate WeChat mini-program E2E testing by generating standalone Node.js scripts or Jest tests using miniprogram-automator to handle page navigation, element interaction, and visual validation.

Can I mock wx.request API calls in a WeChat mini-program test environment?

Yes, you can mock wx methods like request to create controlled testing environments, allowing you to simulate API responses and validate interactions without relying on actual network requests.

How do I validate UI interactions and take screenshots in WeChat mini-program automation?

WeChat mini-program automation validates UI interactions by automating page navigation and element interaction, then capturing screenshots to perform visual validation of the rendered pages.

What is the best way to handle errors and cleanup in mini-program automation scripts?

The best way to handle errors in mini-program automation scripts is to implement robust error checking, logging, and cleanup procedures to ensure stable test execution and reliable resource management.

Does miniprogram-automator support Jest tests for WeChat mini-program workflows?

Yes, miniprogram-automator supports Jest tests, enabling you to integrate WeChat mini-program automation workflows directly into existing JavaScript testing pipelines for end-to-end validation.