Sha256: 6e620b684f65d4db8cf3b0f59a1c9bd1dc6a5202790fe3969e4b1b1b6b74ca5c

Contents?: true

Size: 615 Bytes

Versions: 18

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

feature '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

18 entries across 18 versions & 1 rubygems

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