Sha256: ce39ea2b21c683f4b23290f264d0896a591525ab2fa2b4baee8aa703b745975c

Contents?: true

Size: 772 Bytes

Versions: 18

Compression:

Stored size: 772 Bytes

Contents

# frozen_string_literal: true

describe 'Creating a page', type: :feature do
  let(:exhibit) { FactoryBot.create(:exhibit) }
  let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) }

  describe 'when a bunch of about pages exist' do
    let!(:page1) { FactoryBot.create(:about_page, exhibit: exhibit) }
    let!(:page2) { FactoryBot.create(:about_page, exhibit: exhibit) }
    let!(:page3) { FactoryBot.create(:about_page, exhibit: exhibit, title: 'A new one') }
    it 'is able to show a list of About pages to be curated' do
      login_as exhibit_curator
      visit spotlight.exhibit_dashboard_path(exhibit)
      within '#sidebar' do
        click_link 'About pages'
      end
      expect(page).to have_content 'A new one'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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