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