Set up Spectron (deprecated) tests for legacy Electron application testing
Sets up Spectron test environments for legacy Electron applications with WebDriverIO integration.
npx claudepluginhub a5c-ai/babysitterThis skill is limited to using the following tools:
README.mdSet up Spectron tests for legacy Electron applications. Note: Spectron is deprecated; use Playwright for new projects.
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"electronPath": { "type": "string" }
},
"required": ["projectPath"]
}
const Application = require('spectron').Application;
const path = require('path');
describe('Application launch', function () {
beforeEach(function () {
this.app = new Application({
path: require('electron'),
args: [path.join(__dirname, '..')]
});
return this.app.start();
});
afterEach(function () {
if (this.app && this.app.isRunning()) {
return this.app.stop();
}
});
it('shows initial window', function () {
return this.app.client.getWindowCount().then(count => {
expect(count).toBe(1);
});
});
});
Consider migrating to playwright-electron-config for modern Electron testing.
playwright-electron-configelectron-mock-factoryActivates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.