Sha256: 45491ee11e07842d76a2c2d18e835380da6415532ca191d49c8c5e815a7ce21e
Contents?: true
Size: 744 Bytes
Versions: 6
Compression:
Stored size: 744 Bytes
Contents
describe 'Update the site theme', type: :feature do let(:exhibit) { FactoryGirl.create(:exhibit) } let(:user) { FactoryGirl.create(:exhibit_admin, exhibit: exhibit) } before { login_as user } it 'updates the exhibit theme' do visit spotlight.edit_exhibit_appearance_path(exhibit) expect(page).to have_content('Visual theme') choose 'Modern' click_button 'Save changes' expect(page).to have_content('The exhibit was successfully updated.') within '#sidebar' do click_link 'Appearance' end click_link 'Exhibit masthead' expect(field_labeled('Modern')).to be_checked expect(page).to have_xpath('//link[contains(@href, "/stylesheets/application_modern.css")]', visible: false) end end
Version data entries
6 entries across 6 versions & 1 rubygems