Sha256: b09e4bb722bb925980b3b3f70ef405f386aca56293c75ec252a8b0efb04d70b5

Contents?: true

Size: 1.01 KB

Versions: 9

Compression:

Stored size: 1.01 KB

Contents

require 'spec_helper'

describe 'Main' do
  describe 'Screenshots', type: :feature, js: true do
    take_screenshot '/', 'core_1200', res_x: 1200, res_y: 1000, full: true
    take_screenshot '/', 'core_760', res_x: 760, res_y: 1000, full: true
    take_screenshot '/', 'core_400', res_x: 400, res_y: 1000, full: true
    take_screenshot '/footer', 'footer', res_x: 1000, res_y: 200
    take_screenshot '/flashes', 'flash_error', res_y: 100, before: Proc.new { click_link('Error') }
    take_screenshot '/flashes', 'flash_success', res_y: 100, before: Proc.new { click_link('Success') }
    take_screenshot '/flashes', 'flash_info', res_y: 100, before: Proc.new { click_link('Info') }
    take_screenshot '/flashes', 'flash_error_mobile', res_x: 320, res_y: 100, before: Proc.new { click_link('Error') }
    take_screenshot '/', 'modal', res_x: 1000, res_y: 250, before: Proc.new { click_link('Open modal') }
    take_screenshot '/', 'confirm_modal', res_x: 1000, res_y: 250, before: Proc.new { click_link('Confirmation modal') }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dvl-core-0.1.0 spec/main_spec.rb
dvl-core-0.0.12 spec/main_spec.rb
dvl-core-0.0.11 spec/main_spec.rb
dvl-core-0.0.10 spec/main_spec.rb
dvl-core-0.0.9 spec/main_spec.rb
dvl-core-0.0.8 spec/main_spec.rb
dvl-core-0.0.7 spec/main_spec.rb
dvl-core-0.0.6 spec/main_spec.rb
dvl-core-0.0.5 spec/main_spec.rb