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