Sha256: a27a608667be2b0b50be6e4c50d100e56f8f18a8d52836616f29e2dd809389f7
Contents?: true
Size: 758 Bytes
Versions: 5
Compression:
Stored size: 758 Bytes
Contents
require 'spec_helper' feature 'About Pages Adminstration', js: true do let(:exhibit) { FactoryGirl.create(:default_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
5 entries across 5 versions & 1 rubygems