Sha256: 5956b730a6e71cdda542400ac7868b47eef4409ded5f4c6746f6e070f633709d
Contents?: true
Size: 865 Bytes
Versions: 24
Compression:
Stored size: 865 Bytes
Contents
# frozen_string_literal: true describe 'Solr Documents Carousel Block', type: :feature, js: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) } let!(:feature_page) { FactoryBot.create(:feature_page, exhibit: exhibit) } before do login_as exhibit_curator visit spotlight.edit_exhibit_feature_page_path(exhibit, feature_page) add_widget 'solr_documents_carousel' end it 'allows a curator to select a caption to display' do fill_in_typeahead_field with: 'dq287tq6352' check 'Primary caption' select 'Title', from: 'primary-caption-field' save_page within '.carousel-block' do expect(page).to have_css('.carousel-item', count: 1) expect(page).to have_css('.carousel-caption .primary', text: "L'AMERIQUE") end end end
Version data entries
24 entries across 24 versions & 1 rubygems