Sha256: 4c88015e3ce567014df5b8d3c7fa9523d5c5802335b23b5f708fae9d36fe0bb0

Contents?: true

Size: 658 Bytes

Versions: 15

Compression:

Stored size: 658 Bytes

Contents

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

15 entries across 15 versions & 1 rubygems

Version Path
blacklight-spotlight-2.0.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.0.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.0.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.0.0.rc6 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.0.0.rc5 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.0.0.rc4 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.0.0.rc3 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.0.0.rc2 spec/features/edit_contact_spec.rb
blacklight-spotlight-2.0.0.rc1 spec/features/edit_contact_spec.rb
blacklight-spotlight-1.5.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-1.4.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-1.4.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-1.3.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-1.2.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-1.1.0 spec/features/edit_contact_spec.rb