Sha256: 4105537e1df2d0a3ffde9b6026a3c166ad6d33142b0a65281b69eefc9e0d618b
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
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` ```ruby 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 1. Run `rake build` to build the package 1. Run `rake release` to publish the package to rubygems.org ## Credit This is forked from https://github.com/surzycki/capybara-animate
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara-flow-0.2.2 | README.md |