βοΈ Troubleshooting
Invalid session tokenβ
testronaut loginshould revalidate auth.- Or regenerate your API key.
Cannot find report fileβ
- Ensure
missions/mission_reports/runs_<runId>.jsonexists (CI wonβt clean the workspace early).
Flaky hover / drawers / expanding menusβ
- Prefer
tools.hoverAndClick(selector)and addif Failure, retry this missionto the mission text.
testronaut: command not foundβ
This error means the testronaut command is not available in your shell's PATH. You have three options:
Option 1 β Global install (recommended)
Install the CLI globally so the testronaut command is available everywhere:
npm install -g testronaut
After this, run testronaut directly from any directory.
Option 2 β Use npx (no install needed)
Prefix every command with npx to run the CLI without a global install:
npx testronaut --init
npx testronaut your-mission.mission.js
Option 3 β Local project install via npm link
If you have a local clone of the testronaut-cli repository, you can link it into your global PATH from the project directory:
cd path/to/testronaut-cli
npm link
This makes your local build available as the testronaut command globally.