Sha256: 4de8e64729edb901506a15ad8e389547bc8a4ba7eb773631d2487d81061e5dc5

Contents?: true

Size: 628 Bytes

Versions: 5

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'

include CommonwealthVlrEngine::CollectionsHelperBehavior

# set this helper to return true so AZ links are rendered
def should_render_col_az?
  true
end

describe 'a-z links' do

  it 'should show the a-z links' do
    visit collections_path
    within ('.item_az_links') do
      expect(page).to have_selector('.az_link')
    end
  end

  it 'should show correct results after clicking a letter link' do
    visit collections_path
    within ('.item_az_links') do
      click_link('C')
    end
    expect(page).to have_selector('.document-title-heading', :text => 'Carte de Visite Collection')
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 spec/features/catalog/_az_links_spec.rb
commonwealth-vlr-engine-0.0.4 spec/features/catalog/_az_links_spec.rb
commonwealth-vlr-engine-0.0.3 spec/features/catalog/_az_links_spec.rb
commonwealth-vlr-engine-0.0.2 spec/features/catalog/_az_links_spec.rb
commonwealth-vlr-engine-0.0.1 spec/features/catalog/_az_links_spec.rb