本文へスキップ
Skillpedia
テスト48k · #4503

e2e-testing-patterns

できること

このツールは、ウェブサイトやアプリケーションが正しく動作するかを確認する自動テストを作る手助けをします。変更を加えても機能が壊れていないことを確かめられるため、新しいバージョンを自信を持ってリリースできるようになります。

使う場面

  • ✓ウェブサイトの機能を確認する自動テストを作成するとき。
  • ✓合格するはずのテストが、原因不明で失敗するとき。
  • ✓ウェブサイトの最も重要な部分が常に動作するようにしたいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/e2e-testing-patterns/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/e2e-testing-patterns/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ログイン時に間違ったパスワードを入力すると、正しくログインに失敗することをテストするにはどうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

ボタンをクリックしたりフォームに入力したりといった、ユーザーが行う操作の流れを定義し、その結果が期待どおりかを確認して動作します。これを自動で実行するため、多くのシナリオを素早くテストできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

E2E Testing Patterns

Build reliable, fast, and maintainable end-to-end test suites that provide confidence to ship code quickly and catch regressions before users do.

Use this skill when

  • Implementing end-to-end test automation
  • Debugging flaky or unreliable tests
  • Testing critical user workflows
  • Setting up CI/CD test pipelines
  • Testing across multiple browsers
  • Validating accessibility requirements
  • Testing responsive designs
  • Establishing E2E testing standards

Do not use this skill when

  • You only need unit or integration tests
  • The environment cannot support stable UI automation
  • You cannot provision safe test accounts or data

Instructions

  1. Identify critical user journeys and success criteria.
  2. Build stable selectors and test data strategies.
  3. Implement isolated tests with observable assertions and tracing; diagnose retries rather than counting a retry as an ordinary pass.
  4. Run in CI with parallelization and artifact capture.

Safety

  • Avoid running destructive tests against production.
  • Use dedicated test data and scrub sensitive output.

Resources

  • resources/implementation-playbook.md for detailed E2E patterns and templates.

Worked example

Input: invalid login sometimes appears successful because the test reads the error before rendering finishes. Use a dedicated fixture account and assert await expect(page.getByRole('alert')).toContainText('Invalid credentials'). Run the test without retries and confirm the dashboard remains inaccessible. Expected: the failure state is observed reliably; a delayed error cannot silently pass.

Inputs and prerequisites

An authorized test URL, isolated accounts/data, the installed browser runner and known success/failure states. The playbook uses project-specific routes and adapters; install only the dependencies your existing suite needs.

Limitations

  • A mocked backend or payment provider proves only the mocked boundary; retain separate real integration checks.
  • Automated accessibility scans miss interaction and assistive-technology problems.
  • Retries, larger timeouts and updated snapshots can hide regressions; preserve first-failure evidence.
  • Browser tooling cannot validate a locked or unavailable interactive environment. Report that gap and continue independent tests.
よくある質問

エンドツーエンドテストとは何ですか?

ユーザーがウェブサイトやアプリケーションを使って、ある作業を最初から最後まで行う一連の体験を再現するテストです。

信頼性の高いテストが重要なのはなぜですか?

信頼性の高いテストがあれば、新しい変更によって既存の機能が壊れていないことを確認できます。そのため、新しいバージョンをより速く、安心してリリースできます。

「フレイキー」なテストとは何ですか?

コードを変更していなくても、成功したり失敗したりが不規則に起こるテストのことです。結果を信用しにくいため、扱いが難しくなります。

詳細

作者による元の説明

Build reliable, fast, and maintainable end-to-end test suites that provide confidence to ship code quickly and catch regressions before users do.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4503
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル