Sha256: 8af699c56cfb04791ee4f42c80571928f16049f65a5680e022dc170f7dd41dcc

Contents?: true

Size: 609 Bytes

Versions: 11

Compression:

Stored size: 609 Bytes

Contents

require 'spec_helper'

feature 'About Pages Adminstration', js: true do
  let(:exhibit) { FactoryGirl.create(:exhibit) }
  let(:exhibit_curator) { FactoryGirl.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

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-spotlight-0.18.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.17.1 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.17.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.16.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.15.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.14.2 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.14.1 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.14.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.13.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.12.1 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.12.0 spec/features/javascript/about_page_admin_spec.rb