Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capybara-flow

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capybara-flow

  • 0.2.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Capybara::Flow

Take a peak at your headless browser acceptance tests. Capybara::Flow captures screenshots after Capybara driven user actions in order to compose an animation of your scenario.

Installation

Capybara::Flow depends on ImageMagick. On newer versions of OS X installation is simple:

brew unlink imagemagick #if you already have imagemagick installed
brew install imagemagick@6 && brew link imagemagick@6 --force

Add this line to your application's Gemfile:

gem 'capybara-flow', group: :test

And then execute:

$ bundle

Or install it yourself as:

$ gem install capybara-flow

Usage

Capybara::Flow automatically hooks in to RSpec system tests with the tag :js. It depends on a driver that implements #save_screenshot

Configuration

Add the following to spec/support/capybara_flow.rb

require 'capybara/flow/hooks/rspec'

Capybara::Flow.configure do |config|
  config.save_path = Rails.root.join("tmp/flow")
  config.iterations = 1
  config.delay_in_ms = 700
end

Releasing new version

  1. Update VERSION
  2. Run rake build to build the package
  3. Run rake release to publish the package to rubygems.org

Credit

This is forked from https://github.com/surzycki/capybara-animate

FAQs

Package last updated on 03 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc