Sha256: e300c27d47aa0e44ba83ec2408fc0b8eb52e2c3c8ccf751ce6b82cc250aca22e

Contents?: true

Size: 760 Bytes

Versions: 17

Compression:

Stored size: 760 Bytes

Contents

require 'rails_helper'

describe 'Notifications' do
  subject do
    visit '/'
  end

  let(:user) { create :user }

  before do
    login_as user
  end

  context 'no notifications' do
    it do
      subject
      expect(page).to have_no_css('.notifications-unseen-mark')
    end
  end

  context 'with unseen notifications' do
    before do
      SimpleUserNotifier.with(message: 'probandooo').deliver(User.all)
    end

    it do
      subject
      expect(page).to have_css('.notifications-unseen-mark')
      find('.bi-bell-fill').click
      expect(page).to have_no_css('.notifications-unseen-mark', wait: 5)
      expect(page).to have_no_css('.unseen')
      click_on 'Marcar como no leĆ­do'
      expect(page).to have_css('.unseen')
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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