Sha256: a89c4322c1329b08e41fb3ea1b1b933858936630844b6e8267bd884200f6220f

Contents?: true

Size: 750 Bytes

Versions: 11

Compression:

Stored size: 750 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_home_page_path(exhibit, exhibit.home_page)
    click_link exhibit_curator.email

    within '#user-util-collapse .dropdown' do
      click_link 'Dashboard'
    end

    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.11.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.10.3 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.10.2 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.10.1 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.10.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.9.2 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.9.1 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.9.0 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.8.2 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.8.1 spec/features/javascript/about_page_admin_spec.rb
blacklight-spotlight-0.8.0 spec/features/javascript/about_page_admin_spec.rb