Sha256: 61b034059cb4dcc7134fa24e606650a98ef29b2de482a0ad238d75291c5f12ce

Contents?: true

Size: 1014 Bytes

Versions: 16

Compression:

Stored size: 1014 Bytes

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')
      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

16 entries across 16 versions & 1 rubygems

Version Path
volt-0.9.1.pre1 spec/integration/flash_spec.rb
volt-0.9.0 spec/integration/flash_spec.rb
volt-0.9.0.pre7 spec/integration/flash_spec.rb
volt-0.9.0.pre6 spec/integration/flash_spec.rb
volt-0.9.0.pre5 spec/integration/flash_spec.rb
volt-0.9.0.pre4 spec/integration/flash_spec.rb
volt-0.9.0.pre3 spec/integration/flash_spec.rb
volt-0.9.0.pre2 spec/integration/flash_spec.rb
volt-0.9.0.pre1 spec/integration/flash_spec.rb
volt-0.8.27.beta9 spec/integration/flash_spec.rb
volt-0.8.27.beta8 spec/integration/flash_spec.rb
volt-0.8.27.beta7 spec/integration/flash_spec.rb
volt-0.8.27.beta6 spec/integration/flash_spec.rb
volt-0.8.27.beta5 spec/integration/flash_spec.rb
volt-0.8.27.beta4 spec/integration/flash_spec.rb
volt-0.8.27.beta3 spec/integration/flash_spec.rb