Sha256: 19d78ef4f4b5a95c371a60ee0165b3bf2c6fbf0a8817675e4272c7190ce32bdd

Contents?: true

Size: 763 Bytes

Versions: 39

Compression:

Stored size: 763 Bytes

Contents

# frozen_string_literal: true

describe 'Update the site theme', type: :feature do
  let(:exhibit) { FactoryBot.create(:exhibit) }
  let(:user) { FactoryBot.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(page).to have_checked_field 'Modern'
    expect(page).to have_xpath('//link[contains(@href, "/assets/application_modern")]', visible: false)
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
blacklight-spotlight-3.3.0 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.2.0 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.1.0 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.3 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.2 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.1 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.rc6 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.rc5 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.rc4 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.rc3 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.rc2 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.rc1 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.alpha.10 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.alpha.9 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.alpha.8 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.alpha.7 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.alpha.6 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.alpha.5 spec/features/exhibit_themes_spec.rb
blacklight-spotlight-3.0.0.alpha.4 spec/features/exhibit_themes_spec.rb