Sha256: c0318dc3366c3dfa65bef93b868933b712d20acba74b0972fa1d97466a0d42a8

Contents?: true

Size: 791 Bytes

Versions: 4

Compression:

Stored size: 791 Bytes

Contents

require 'spec_helper'

#include CommonwealthVlrEngine::CollectionsHelperBehavior

describe 'Collections#index view' do #, js: true do

  before { visit collections_path }

  describe 'facets' do

    it 'should show facets in the sidebar' do
      expect(page).to have_selector('.facet-content')
    end

    it 'should not show "Collections" in the facet list for basic genre' do
      within ('#facet-genre_basic_ssim') do
        expect(page.text).to_not include('Collections')
      end
    end

    describe 'click on facet value' do

      before { click_link('Photographs') }

      it 'should show the facet limit in the applied params widget' do
        within ('.constraint-value') do
          expect(page.text).to include('Photographs')
        end
      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.4 spec/features/collections/index_spec.rb
commonwealth-vlr-engine-0.0.3 spec/features/collections/index_spec.rb
commonwealth-vlr-engine-0.0.2 spec/features/collections/index_spec.rb
commonwealth-vlr-engine-0.0.1 spec/features/collections/index_spec.rb