Sha256: 0dd6799c4dbf28213084f819a5601372b65d6cc864425685dc62044b42a12aff

Contents?: true

Size: 704 Bytes

Versions: 3

Compression:

Stored size: 704 Bytes

Contents

require 'spec_helper'

describe 'more like this search' do

  it 'should show the more-like-this search link' do
    visit solr_document_path(:id => 'bpl-dev:df65v790j')
    within ('#more_like_this') do
      expect(page).to have_selector('#more_mlt_link')
    end
  end

  it 'should show related results after clicking the link' do
    visit solr_document_path(:id => 'bpl-dev:df65v790j')
    click_link('more_mlt_link')
    expect(page).to have_selector('#documents div.document')
  end

  it 'should show the constraint for a more-like-this search' do
    visit search_catalog_path(:mlt_id => 'bpl-dev:df65v790j', :qt => 'mlt')
    expect(page).to have_selector('#appliedParams span.mlt')
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.4 spec/features/more_like_this_search_spec.rb
commonwealth-vlr-engine-0.0.3 spec/features/more_like_this_search_spec.rb
commonwealth-vlr-engine-0.0.2 spec/features/more_like_this_search_spec.rb