Sha256: eba76da934fd8c7452ebac1613f56d63ee7eae78965fbac10980762555fa1c3b

Contents?: true

Size: 1.01 KB

Versions: 40

Compression:

Stored size: 1.01 KB

Contents

# This spec fails on sauce randomly, disable for now
if ENV['BROWSER'] && ENV['BROWSER'] != 'sauce'
  require 'spec_helper'

  describe 'flash messages', type: :feature, sauce: true do
    it 'should flash on sucesses, notices, warnings, and errors' do
      visit '/'

      click_link 'Flash'

      click_link 'Flash Notice'
      expect(page).to have_content('A notice message')
      # sleep 40
      find('.alert').click
      expect(page).to_not have_content('A notice message')

      click_link 'Flash Success'
      expect(page).to have_content('A success message')
      find('.alert').click
      expect(page).to_not have_content('A success message')

      click_link 'Flash Warning'
      expect(page).to have_content('A warning message')
      find('.alert').click
      expect(page).to_not have_content('A warning message')

      click_link 'Flash Error'
      expect(page).to have_content('An error message')
      find('.alert').click
      expect(page).to_not have_content('An error message')
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 spec/integration/flash_spec.rb
volt-0.9.7.pre7 spec/integration/flash_spec.rb
volt-0.9.7.pre6 spec/integration/flash_spec.rb
volt-0.9.7.pre5 spec/integration/flash_spec.rb
volt-0.9.7.pre3 spec/integration/flash_spec.rb
volt-0.9.7.pre2 spec/integration/flash_spec.rb
volt-0.9.6 spec/integration/flash_spec.rb
volt-0.9.6.pre3 spec/integration/flash_spec.rb
volt-0.9.6.pre2 spec/integration/flash_spec.rb
volt-0.9.6.pre1 spec/integration/flash_spec.rb
volt-0.9.5 spec/integration/flash_spec.rb
volt-0.9.5.pre12 spec/integration/flash_spec.rb
volt-0.9.5.pre11 spec/integration/flash_spec.rb
volt-0.9.5.pre9 spec/integration/flash_spec.rb
volt-0.9.5.pre8 spec/integration/flash_spec.rb
volt-0.9.5.pre7 spec/integration/flash_spec.rb
volt-0.9.5.pre6 spec/integration/flash_spec.rb
volt-0.9.5.pre5 spec/integration/flash_spec.rb
volt-0.9.5.pre4 spec/integration/flash_spec.rb
volt-0.9.5.pre3 spec/integration/flash_spec.rb