Sha256: dfece3a04be0a0e297fff18865405caa76e01a9a93db296010f8c49c48ff6495

Contents?: true

Size: 612 Bytes

Versions: 12

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

describe 'About Pages Adminstration', js: true do
  let(:exhibit) { FactoryBot.create(:exhibit) }
  let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) }

  before { login_as exhibit_curator }

  it 'is able to create new pages' do
    login_as exhibit_curator
    visit spotlight.exhibit_dashboard_path(exhibit)

    click_link 'About pages'

    add_new_via_button('My New Page')

    expect(page).to have_content 'The about page was created.'
    expect(page).to have_css('li.dd-item')
    expect(page).to have_css('h3', text: 'My New Page')
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.3.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.2.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.1.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.3 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.2 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.1 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.rc6 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.rc5 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.rc4 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.rc3 spec/features/javascript/about_page_admin_spec.rb