スキル一覧に戻る
venturo-id

collect-selector

by venturo-id

0🍴 1📅 2025年12月4日
GitHubで見るManusで実行

SKILL.md


name: collect-selector description: Use this skill to determine the correct data-testid selector for Playwright or end-to-end tests.

Collect Selector

Purpose

Determine the correct data-testid for a UI component following a strict priority order.

Logic to collect data-testid

  1. Priority 1: playwrightId
    • If component has playwrightId="some-value"
    • Use in test: [data-testid="some-value"]
    • Example: → test uses [data-testid="submit-btn"]
  2. Priority 2: data-testid
    • If component has data-testid="some-value" (and no playwrightId)
    • Use in test: [data-testid="some-value"]
    • Example: → test uses [data-testid="submit-btn"]
  3. Priority 3: Text Content
    • If no playwrightId or data-testid exists
    • Use in test: element's visible text
    • Example: Submit Form → test uses text="Submit Form"
  4. Priority 4: Auto create playwrightId
    • If nothing above exists please add playwrightId using relevant value for the component Simple Summary: // Component has playwrightId:

// Test uses: [data-testid="my-element"] // Component has only data-testid: // Test uses: [data-testid="my-element"]

Key Rule: Always use [data-testid="..."] in tests, whether the component has playwrightId or data-testid!

Output Format

Return a simple string containing the resolved data-testid value.

If no match is found, return: "undefined-testid"

スコア

総合スコア

35/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です