Sha256: 6adaad48dbd5a1bcd44d8ad6c95f2ee4c281d860aa11fa01567366bf839d1639
Contents?: true
Size: 1.18 KB
Versions: 11
Compression:
Stored size: 1.18 KB
Contents
require 'spec_helper' feature 'Block controls' do let(:exhibit) { FactoryGirl.create(:exhibit) } let(:exhibit_curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) } before { login_as exhibit_curator } scenario 'should be split into separate sections', js: true do # create page visit spotlight.exhibit_dashboard_path(exhibit) click_link 'Feature pages' add_new_page_via_button('My New Feature Page') expect(page).to have_css('h3', text: 'My New Feature Page') expect(page).to have_content('The feature page was created.') within('li.dd-item') do click_link 'Edit' end # fill in title fill_in 'feature_page_title', with: 'Exhibit Title' # click to add widget click_add_widget within('.st-block-controls') do expect(page).to have_css('.st-controls-group', count: 2) within(first('.st-controls-group')) do expect(page).to have_content 'Standard widgets' expect(page).to have_css('a.st-block-control') end within(all('.st-controls-group').last) do expect(page).to have_content 'Exhibit item widgets' expect(page).to have_css('a.st-block-control') end end end end
Version data entries
11 entries across 11 versions & 1 rubygems