Sha256: 06a253c9c65291a75d76228e6cb42e9f6b27983c0dda32e5bc6e2d5d3bbb16cc

Contents?: true

Size: 690 Bytes

Versions: 18

Compression:

Stored size: 690 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

18 entries across 18 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-3.0.0.alpha.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.13.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.12.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.12.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.11.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.10.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.9.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.8.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.7.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.7.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.7.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.6.1.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.6.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.6.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.5.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.5.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.5.0 spec/features/edit_contact_spec.rb