feature-spec

Write Capybara end-to-end tests for WikiEduDashboard controllers.

427|723|Updated Dec 12, 2014
One-click install
npx skills add https://github.com/WikiEducationFoundation/WikiEduDashboard --skill feature-spec-wikieducationfoundation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-spec
Source: https://github.com/WikiEducationFoundation/WikiEduDashboard/tree/main/.claude/skills/feature-spec
Command: npx skills add https://github.com/WikiEducationFoundation/WikiEduDashboard --skill feature-spec-wikieducationfoundation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps QA engineers and developers create robust browser-based feature tests for the WikiEduDashboard Rails app using Capybara. It focuses on testing user interactions at a high level rather than internal implementation details, improving reliability and coverage across controllers and views.

Core Features & Use Cases

  • Guides writing concise, end-to-end Capybara specs for controller routes and views.
  • Enforces best practices for visiting pages, filling forms, and asserting outcomes to mirror real user flows.
  • Supports validating permissions and error handling across scenarios.
  • Promotes test-coverage improvements with reusable patterns and factories.

Quick Start

Create a sample spec under spec/features for a target controller and run bin/feature-spec to execute it.

Frequently Asked Questions about feature-spec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Capybara feature specs for Rails controller actions and views?

To write Capybara feature specs for Rails controller actions, you create a spec under spec/features and use Capybara to visit pages, fill forms, and assert outcomes mirroring real user flows. This validates high-level interactions rather than internal implementation details.

What is the best way to test permissions and error handling in Rails browser tests?

The best way to test permissions and error handling in Rails browser tests is using Capybara feature specs. They enforce best practices for validating user interactions across scenarios, ensuring reliable test coverage for controller routes and permission logic without coupling to internal implementation.

Do I need RSpec and a headless browser driver to run end-to-end tests in Rails?

Yes, you need RSpec and a headless browser driver to run end-to-end tests in Rails. The Capybara feature specs require Rails, RSpec, Capybara, and a headless browser driver to execute browser-based tests for controller actions and navigation flows.

Can I use Capybara to validate forms and navigation for WikiEduDashboard controllers?

Yes, you can use Capybara to validate forms and navigation for WikiEduDashboard controllers. The feature specs guide writing concise end-to-end tests that visit pages and fill forms to assert outcomes, specifically testing user interactions at a high level for the Rails app.

Why does my Capybara feature spec test coverage fail to mirror real user flows?

Capybara feature spec test coverage fails to mirror real user flows when tests focus on internal implementation details instead of high-level interactions. Following established conventions for visiting pages, filling forms, and asserting outcomes improves reliability and test coverage across controllers.