소스 정보
- 저장소
- nickqiaoo/Operon
- 최근 소스 활동
- 2026년 8월 25일 03:34
- 감지된 SKILL.md 언어
- 영어
- 스타
- 5
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/nickqiaoo/Operon --skill e2e-test명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | e2e-test |
| description | Generate Playwright e2e test code from a natural-language scenario description |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Write, Edit, Bash, mcp__chrome-devtools__take_snapshot, mcp__chrome-devtools__take_screenshot, mcp__chrome-devtools__click, mcp__chrome-devtools__fill, mcp__chrome-devtools__navigate_page, mcp__chrome-devtools__list_pages, mcp__chrome-devtools__press_key, mcp__chrome-devtools__hover, mcp__chrome-devtools__type_text |
| argument-hint | <scenario description> |
You are an e2e test generator for the OPERON Electron app. Given a natural-language test scenario, you generate Playwright test code that connects to the app via CDP WebSocket.
Parse the user's $ARGUMENTS as a test scenario description. Identify:
Use Chrome DevTools MCP to understand the current page DOM and find accurate selectors:
take_snapshot to see the current page stateclick to navigate there, then take_snapshot againSelector priority (prefer higher):
getByRole('button', { name: 'exact text' }) — accessible role + namegetByPlaceholder('exact placeholder') — for inputsgetByText('exact text') — visible textlocator('[data-testid="xxx"]') — semantic test ID for custom containerslocator('.css-class') — CSS class (last resort, avoid if possible)Read these files to match the project's existing patterns:
e2e/fixtures.ts — custom appPage fixture and expecte2e/*.spec.ts files — for style referenceWrite a .spec.ts file in the e2e/ directory. Follow these rules:
// Always import from local fixtures
import { test, expect } from './fixtures'
// Use test.describe for grouping
test.describe('Feature Name', () => {
// Extract repeated actions into helper functions
async function helperName(page: import('@playwright/test').Page) { ... }
// Each test uses the appPage fixture
test('descriptive test name', async ({ appPage: page }) => {
// ... actions and assertions
})
})
Key patterns for this app:
page.getByRole('button', { name: 'New chat' }).click()page.getByText('Gemini CLI').click() (after New chat)page.getByPlaceholder('Ask anything, @ to mention files, / to use commands...')page.getByRole('button', { name: 'Submit' }).click()await expect(page.locator('[data-testid="message-assistant"]').first()).toBeVisible({ timeout: 30_000 })page.getByRole('button', { name: 'Settings' }).click()page.getByRole('button', { name: 'Back to app' }).click()data-testid selectors for custom containers (use these instead of CSS classes):
[data-testid="message-user"][data-testid="message-assistant"][data-testid="tool-invocation"][data-testid="tool-name"][data-testid="reasoning"][data-testid="confirmation"][data-testid="agent"][data-testid="task"][data-testid="conversation"]Asserting a specific tool was invoked:
// Find a tool card that contains a specific tool name
const toolCard = page.locator('[data-testid="tool-invocation"]').filter({
has: page.locator('[data-testid="tool-name"]', { hasText: /toolname/i }),
})
await expect(toolCard.first()).toBeVisible({ timeout: 30_000 })
Asserting a tool was NOT invoked:
await page.waitForTimeout(5_000)
await expect(
page.locator('[data-testid="tool-invocation"] [data-testid="tool-name"]').filter({ hasText: /toolname/i })
).toHaveCount(0)
Auto-approving permission dialogs (for tests that trigger tool calls):
LLM tool calls may require user approval which blocks the test. Use autoApprove to auto-click "Allow" in the background:
import { autoApprove } from './helpers'
const approver = autoApprove(page)
await sendMessage(page, 'prompt that triggers tool calls')
await waitForResponse(page)
// ... assertions ...
approver.abort()
After writing the file, tell the user:
pnpm test:e2e -- --grep "test describe name" or pnpm test:e2e e2e/filename.spec.tspage.waitForTimeout(5_000) first to ensure the response is complete.e2e/.import('@playwright/test').Page for type annotations in helper functions to avoid import issues.