Sha256: 3c124a2a8ce4b961f6cf03a0aa258a2edc1cf169553f3f44d4ed992ae6e8cd5f

Contents?: true

Size: 691 Bytes

Versions: 22

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true

describe 'Add a contact to an exhibit', type: :feature do
  let(:curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) }
  let(:exhibit) { FactoryBot.create(:exhibit) }
  let!(:about_page) { FactoryBot.create(:about_page, exhibit: exhibit) }
  let!(:contact) { FactoryBot.create(:contact, name: 'Marcus Aurelius', exhibit: exhibit) }

  before { login_as curator }

  it 'displays a newly added contact in the sidebar' do
    visit spotlight.exhibit_about_pages_path(exhibit)

    within '.contacts_admin' do
      click_link 'Edit'
    end

    click_button 'Save'
    expect(page).to have_content 'The contact was successfully updated.'
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.3.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.2.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.1.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.3 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.rc6 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.rc5 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.rc4 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.rc3 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.rc2 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.rc1 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.alpha.10 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.alpha.9 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.alpha.8 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.alpha.7 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.alpha.6 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.alpha.5 spec/features/edit_contact_spec.rb