Sha256: 3834d7425b07b10af98d9deb5c0811e908961e774d6f43f3e8fa3a87375cb7f5

Contents?: true

Size: 617 Bytes

Versions: 10

Compression:

Stored size: 617 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_page_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

10 entries across 10 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.rc2 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.rc1 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.alpha.10 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.alpha.9 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.alpha.8 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.alpha.7 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.alpha.6 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.alpha.5 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.alpha.4 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-3.0.0.alpha.3 spec/features/javascript/about_page_admin_spec.rb