Sha256: 93ae5daa1c6c0a7e317aa88cf9a52793fe893124347b39e7bc9138026073e0a1
Contents?: true
Size: 869 Bytes
Versions: 54
Compression:
Stored size: 869 Bytes
Contents
require 'rails_helper' describe 'Notifications' do subject do visit '/' end let(:user) { create :user } before do driven_by ENV['DRIVER']&.to_sym || :selenium_chrome_headless_iphone 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 pending 'with read notifications' end
Version data entries
54 entries across 54 versions & 1 rubygems