Skills Plugins MCP Prompt Model 博客 我的中心
开发编程 #testing #web

capybara-skill

Generates Capybara E2E tests in Ruby with RSpec integration. Acceptance testing DSL for web apps. Use when user mentions "Capybara", "visit", "fill_in", "click_button", "Ruby E2E". Triggers on: "Capybara", "Ruby acceptance test", "fill_in", "click_button", "have_content".

DeepseekModel 官方收录技能 质量 优秀 · 78 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=lambdatest-agent-skills-capybara-skill-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name capybara-skill description Generates Capybara E2E tests in Ruby with RSpec integration. Acceptance testing DSL for web apps. Use when user mentions "Capybara", "visit", "fill_in", "click_button", "Ruby E2E". Triggers on: "Capybara", "Ruby acceptance test", "fill_in", "click_button", "have_content". languages ["Ruby"] category e2e-testing license MIT metadata {"author":"TestMu AI","version":"1.0"} Capybara Automation Skill Core Patterns Basic Test (RSpec) require 'capybara/rspec' RSpec .describe 'Login' , type: :feature do it 'logs in with valid credentials' do visit '/login' fill_in 'Email' , with: 'user@test.com' fill_in 'Password' , with: 'password123' click_button 'Login' expect(page).to have_content( 'Dashboard' ) expect(page).to have_current_path( '/dashboard' ) end it 'shows error for invalid credentials' do visit '/login' fill_in 'Email' , with: 'wrong@test.com' fill_in 'Password' , with: 'wrong' click_button 'Login' expect(page).to have_content( 'Invalid credentials' ) end end DSL # Navigation visit '/path' go_back go_forward # Interacting fill_in 'Label or Name' , with: 'text' choose 'Radio Label' check 'Checkbox Label' uncheck 'Checkbox Label' select 'Option' , from: 'Select Label' attach_file 'Upload' , '/path/to/file' click_button 'Submit' click_link 'More Info' click_on 'Button or Link' # Finding find( '#id' ) find( '.class' ) find( '[data-testid="x"]' ) find( :xpath , '//div' ) all( '.items' ).count # Matchers expect(page).to have_content( 'text' ) expect(page).to have_selector( '#element' ) expect(page).to have_css( '.class' ) expect(page).to have_button( 'Submit' ) expect(page).to have_field( 'Email' ) expect(page).to have_link( 'Click Here' ) expect(page).to have_current_path( '/expected' ) expect(page).to have_no_content( 'error' ) Within Scope within( '#login-form' ) do fill_in 'Email' , with: 'user@test.com' click_button 'Login' end within_table( 'users' ) do expect(page).to have_content( 'Alice' ) end TestMu AI Cloud Capybara .register_driver :lambdatest do | app | caps = Selenium::WebDriver::Remote::Capabilities .new( browserName: 'chrome' , 'LT:Options' => { user: ENV [ 'LT_USERNAME' ], accessKey: ENV [ 'LT_ACCESS_KEY' ], build: 'Capybara Build' , name: 'Login Test' , platform: 'Windows 11' , video: true } ) Capybara::Selenium::Driver .new(app, browser: :remote , url: 'https://hub.lambdatest.com/wd/hub' , capabilities: caps) end Capybara .default_driver = :lambdatest Setup: gem 'capybara' + gem 'selenium-webdriver' in Gemfile Run: bundle exec rspec spec/features/ Cloud (TestMu AI) For remote browser execution, see reference/cloud-integration.md and shared/testmu-cloud-reference.md . Deep Patterns See reference/playbook.md for production-grade patterns: Section What You Get §1 Project Setup Gemfile, Capybara config, driver registration, LambdaTest §2 Feature Specs Login flows, JavaScript interactions, modals, async content §3 Page Objects SitePrism pages with elements/sections, usage in specs §4 API Testing Request specs with auth headers, JSON assertions §5 Database Cleaning DatabaseCleaner transaction/truncation strategies §6 Matchers & Helpers Custom helpers, sign_in, expect_flash §7 CI/CD Integration GitHub Actions with Postgres, Redis, Chrome §8 Debugging Table 12 common problems with causes and fixes §9 Best Practices 14-item Capybara testing checklist
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。