Check out the io.Connect Desktop Testing Skill for coding agents

In case you’ve missed it, since CLI 1.0.0 the Seed Project comes with a iocd-wdio-testingskill for writing, running, and debugging end-to-end tests.

The skill gives your agent instructions for working with the seed’s WebdriverIO setup. When you run npm test, the setup starts a separate Desktop instance with an isolated user profile. WebdriverIO can click through your apps, and the test can use io.Connect APIs to check what happened across them.

If you want to try it, pick something you already check by hand, say two apps in a Workspace and ask the agent:

Use iocd-wdio-testing to open Orders and Details in a Workspace, select an order in Orders, and verify that Details shows the same order ID. Run just that spec.

Check your project for the skill availability at .agents/skills/iocd-wdio-testing/SKILL.md.

Older CLI

Something I found in my own seed. I set up io.Connect Desktop 10.5.2 about a month ago, and when I checked, the skill was missing. npm had tried to install CLI 2.1.0, but failed because the project was still on Electron Forge 7 instead of Forge 8. The project ended up pinned to CLI 0.0.84.

Relevant commands.

  • npx @interopio/iocd-cli@latest skills update - Replaces the CLI-managed Agent Skills with their latest published versions. It also adds the testing skill if it’s missing.
  • npx @interopio/iocd-cli@latest test setup - Adds the current test infrastructure to a seed where the test package is missing. It creates the test package and Agent Skill, installs the test dependencies, and checks the setup with TypeScript. If the test directory already exists, the command stops without changing it.
  • npm test - Runs all test specifications.
  • npm test -- --spec ./tests/single-app.spec.ts - Runs a single specification. Pass the path to the spec you want to run with --spec.

Testing docs · Read the skill

Has anyone tried it already and have you made any modifications?