From ignition-scada
Scaffolds Playwright E2E tests for Ignition Perspective views, including page objects, component wrappers, gateway API helpers for tags/scripts, and smoke tests.
npx claudepluginhub thethoughtagen/ignition-ide-plugins --plugin ignition-scadaThis skill uses the workspace's default tool permissions.
Scaffold a complete Playwright e2e test setup for Perspective views. This creates:
프로젝트에 Playwright E2E 테스트 환경을 세팅합니다. 프로젝트 구조 감지 → 패키지 설치 → 설정 파일 → 디렉토리 구조 → 샘플 테스트 검증.
Configure Playwright for E2E testing. Use when setting up end-to-end tests, when no E2E framework is detected, or when the user asks to configure browser testing.
Share bugs, ideas, or general feedback.
Scaffold a complete Playwright e2e test setup for Perspective views. This creates:
Run the detection script:
${CLAUDE_PLUGIN_ROOT}/scripts/detect-project.sh
Check has_perspective — if false, warn the user: "No Perspective module found (com.inductiveautomation.perspective/ directory missing). E2E tests require Perspective views. Continue anyway?"
Present findings and ask the user to confirm their tag provider.
Auto-detect the Perspective project name:
PERSPECTIVE_PROJECT variableAsk the user to confirm the Perspective project name.
Check if the Jython test framework exists (existing_testing.jython_framework). If not, inform the user and automatically run the testing scaffold first:
${CLAUDE_PLUGIN_ROOT}/scripts/scaffold-testing.sh \
--project-root <detected> \
--project-name <detected> \
--gateway-url <detected> \
--tag-provider <confirmed>
The e2e gateway-api helper depends on the WebDev testing/tags endpoint.
Run the e2e scaffold script:
${CLAUDE_PLUGIN_ROOT}/scripts/scaffold-e2e.sh \
--project-root <detected> \
--project-name <detected> \
--gateway-url <detected> \
--tag-provider <confirmed> \
--perspective-project <confirmed>
Install dependencies:
cd <project-root>/e2e && npm install && npx playwright install chromium
Set up the .env file:
parent.has_e2e_env. If the parent project has an existing e2e/.env:
e2e/.env at {parent.e2e_env_path}. Since both projects share the same gateway, I can copy it and just update the PERSPECTIVE_PROJECT name.".env to <project-root>/e2e/.envPERSPECTIVE_PROJECT to the confirmed value for this project.env exists:
e2e/.env.example to e2e/.envIGNITION_USER and IGNITION_PASSWORD.env — it's in the scaffolded .gitignoreExplain auth setup:
cd e2e && npx playwright test --project=setup to authenticatenpm test to run the smoke testsnpx playwright show-report to view results in a browser