Sha256: b891d22dc00f085c6fb0f02bf468082b0128ed4503e134ab00d554fdfce4e097

Contents?: true

Size: 877 Bytes

Versions: 11

Compression:

Stored size: 877 Bytes

Contents

require 'spec_helper'

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

  describe 'when a bunch of about pages exist' do
    let!(:page1) { FactoryGirl.create(:about_page, exhibit: exhibit) }
    let!(:page2) { FactoryGirl.create(:about_page, exhibit: exhibit) }
    let!(:page3) { FactoryGirl.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_home_page_path(exhibit, exhibit.home_page)
      within '#user-util-collapse .dropdown' do
        click_link 'Dashboard'
      end
      within '#sidebar' do
        click_link 'About pages'
      end
      expect(page).to have_content 'A new one'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-spotlight-0.11.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.10.3 spec/features/create_page_spec.rb
blacklight-spotlight-0.10.2 spec/features/create_page_spec.rb
blacklight-spotlight-0.10.1 spec/features/create_page_spec.rb
blacklight-spotlight-0.10.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.9.2 spec/features/create_page_spec.rb
blacklight-spotlight-0.9.1 spec/features/create_page_spec.rb
blacklight-spotlight-0.9.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.8.2 spec/features/create_page_spec.rb
blacklight-spotlight-0.8.1 spec/features/create_page_spec.rb
blacklight-spotlight-0.8.0 spec/features/create_page_spec.rb