This brings AI-powered E2E testing to Vitest across web, Android, and iOS. Instead of writing brittle selectors, you describe what you want in natural language and let Midscene's aiAct API handle the planning and execution. The skill scaffolds new projects, converts existing ones, and helps you write, debug, and run tests. It's opinionated about structure (clones a boilerplate to ~/.midscene as the reference) and has one core rule: don't decompose user intent into granular API calls, just pass the whole instruction to aiAct. Works with Playwright for web, ADB for Android, and WebDriverAgent for iOS. Useful if you want less selector maintenance and more readable test code, though you're trading explicit control for AI interpretation.

skills.sh installs
2.1K
GitHub stars
321
last updated
Aug 21, 2026

Install

$ npx -y skills add web-infra-dev/midscene-skills --skill vitest-midscene-e2e --agent claude-code

Installs into .claude/skills of the current project.

Files

Vitest Midscene E2E

Modules

ModuleRole
VitestTypeScript test framework. Provides describe/it/expect/hooks for test organization, assertions, and lifecycle.
MidsceneAI-driven UI automation. Interacts with UI elements via natural language — no fragile selectors. Core API: aiAct.

Supported platforms:

  • Web — WebTest (Playwright Chromium): ctx.agent + ctx.page
  • Android — AndroidTest (ADB + scrcpy): ctx.agent only
  • iOS — IOSTest (WebDriverAgent): ctx.agent only

Workflow

Step 1: Clone boilerplate & ensure project ready

bash scripts/clone-boilerplate.sh

Sponsors

Details

Repository
github.com/web-infra-dev/midscene-skills
Categories
Testing & QA, DevOps & CI/CD, AI & Agent Building, Debugging, Mobile Development
First seen
May 16, 2026

More from web-infra-dev/midscene-skills

All 8
1cognitedata avatartest-coveragecognitedata/builder-skillsMUST be used whenever fixing test coverage for a Flows app to meet the 80% line coverage hard gate. This skill finds AND fixes coverage gaps — it configures too1.9Kskills.sh installs
2hieutrtr avatare2e-testinghieutrtr/ai1-skillsEnd-to-end testing patterns with Playwright for full-stack Python/React applications. Use when writing E2E tests for complete user workflows (login, CRUD, navig1.6Kskills.sh installs
3dbt-labs avataradding-dbt-unit-testdbt-labs/dbt-agent-skillsCreates unit test YAML definitions that mock upstream model inputs and validate expected outputs. Use when adding unit tests for a dbt model or practicing test-1.1Kskills.sh installs
4adobe avatarappbuilder-e2e-testingadobe/skillsUse this skill whenever the user wants browser-based end-to-end tests for an Adobe App Builder application. Covers Playwright E2E testing for ExC Shell SPAs, AE800skills.sh installs
5aj-geddes avatare2e-testing-automationaj-geddes/useful-ai-promptsBuild end-to-end automated tests that simulate real user interactions across the full application stack. Use for E2E test, Selenium, Cypress, Playwright, browse695skills.sh installs
6existential-birds avatarvitest-testingexistential-birds/beagleVitest testing framework patterns and best practices. Use when writing unit tests, integration tests, configuring vitest.config, mocking with vi.mock/vi.fn, usi471skills.sh installs