Sha256: 4147021e2240a3fbfd4e39acf4a34e9081118f3cd9a9a533c57a82edd672ceca

Contents?: true

Size: 675 Bytes

Versions: 103

Compression:

Stored size: 675 Bytes

Contents

require 'rails_helper'

describe 'Alertas' do
  before do
    driven_by ENV['DRIVER']&.to_sym || :selenium_chrome_headless_iphone
  end

  it 'los toasts desaparecen' do
    visit '/rails/view_components/alert_component/default'
    expect(page).to have_text('Los toasts van a desaparecer').exactly(5)
    # Desaparecieron
    expect(page).to have_no_text('Los toasts van a desaparecer', wait: 10)
  end

  it 'los dismissibles se cierran' do
    visit '/rails/view_components/alert_component/dismisible'
    expect(page).to have_text('este dismisible se va a cerrar')
    find('.btn-close').click
    expect(page).to have_no_text('este dismisible se va a cerrar')
  end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.26 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.25 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.24 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.24.pre.5 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.24.pre.4 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.24.pre.3 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.23 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.22 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.22.pre.3 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.22.pre.2 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.22.pre.1 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.21 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.21.pre.11 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.21.pre.10 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.21.pre.9 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.21.pre.8 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.21.pre.7 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.21.pre.6 pg_engine/spec/system/alerts_spec.rb
pg_rails-7.6.21.pre.5 pg_engine/spec/system/alerts_spec.rb