From 9668a402480ffa5315ff6035e25e7b06002df2ab Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Tue, 23 Feb 2021 21:51:11 -0800 Subject: [PATCH] Fixup splashpage spec reflecting logo change --- spec/features/conference_spec.rb | 1 - spec/features/splashpage_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/features/conference_spec.rb b/spec/features/conference_spec.rb index 45f59e78..2a9beffe 100644 --- a/spec/features/conference_spec.rb +++ b/spec/features/conference_spec.rb @@ -98,7 +98,6 @@ feature Conference do sign_in user visit admin_conference_path(conference.short_title) - # expect(find('.navbar-brand')).to eq(conference.organization.name) expect(find('.navbar-brand img')['alt']).to have_content conference.organization.name end diff --git a/spec/features/splashpage_spec.rb b/spec/features/splashpage_spec.rb index c637d523..69e1c6ae 100644 --- a/spec/features/splashpage_spec.rb +++ b/spec/features/splashpage_spec.rb @@ -72,11 +72,11 @@ feature Splashpage do context 'multiple organizations' do let!(:additional_organization) { create(:organization) } - scenario 'should have organization name', feature: true, js: true do + scenario 'should have organization logo', feature: true, js: true do sign_in participant visit conference_path(conference.short_title) - expect(page).to have_text(conference.organization.name) + expect(find('.navbar-brand img')['alt']).to have_content conference.organization.name end end end