0.0
No commit activity in last 3 years
No release in over 3 years
Composes GIF animations from screenshots taken after capybara specified user actions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

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