agentsclimarketplace

E2e check

Skill Doarakko/dotfiles/skills/e2e-check

Playwright CLIを使ってE2Eで動作確認を行うときに使用From its SKILL.md

Install
npx -y skills add Doarakko/dotfiles --skill e2e-check

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.6 KB, as published. Nobody here has run it

E2E動作確認(Playwright CLI)

playwright-cli を使ってブラウザを操作し、アプリケーションの動作確認をE2Eで行う。

初期チェック

最初に必ず実行:

which playwright-cli

コマンドが見つからない場合は処理を中断し、ユーザーにインストールを案内する。

動作確認の流れ

1. プロジェクトの理解

  • README.md を読み、プロジェクトの概要・セットアップ手順・起動方法・URLなどを把握する
  • 認証方法、テスト用アカウント、環境変数の設定など動作確認に必要な前提情報を確認する

2. アプリケーションの起動確認

  • READMEの情報をもとに、動作確認対象のURLをユーザーに確認する
  • curl -s -o /dev/null -w "%{http_code}" <URL> で疎通確認する
  • 未起動の場合はユーザーに起動を依頼する

3. ブラウザを開く

playwright-cli open <URL>

4. ページの状態を確認

playwright-cli snapshot
  • snapshot でページ構造と各要素の ref を確認する
  • 要素の ref を使って操作対象を特定する

5. ブラウザ操作

ユーザーの指示や状況に応じて、以下のコマンドを臨機応変に組み合わせて動作確認を行う:

コマンド用途
playwright-cli open <URL>ブラウザでURLを開く
playwright-cli goto <URL>ページ遷移
playwright-cli snapshotページ構造の確認(ref取得)
playwright-cli screenshotスクリーンショット取得
playwright-cli click --ref <ref>要素のクリック
playwright-cli type --ref <ref> --text <text>テキスト入力
playwright-cli select-option --ref <ref> --value <value>セレクトボックス選択
playwright-cli hover --ref <ref>ホバー
playwright-cli cookie-listCookie一覧の確認
playwright-cli closeブラウザを閉じる

6. 確認結果のサマリー

  • 確認したシナリオと結果を一覧で表示する
  • 問題が見つかった場合は、原因と対処方法を提示する

注意事項

  • 操作の前に必ず playwright-cli snapshot で要素の ref を確認してから操作する
  • 認証が必要な場合は、環境変数や .env ファイルから認証情報を取得する
  • 動作確認が完了したら playwright-cli close でブラウザを閉じる

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.