Skip to content
This repository was archived by the owner on Mar 24, 2020. It is now read-only.

Commit c83c579

Browse files
VivianChuhweng
authored andcommitted
Update test
1 parent 75912c0 commit c83c579

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

spec/features/dams_collections_spec.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,10 @@
334334
@soccomObj2.delete
335335
@soccomObj3.delete
336336
end
337-
scenario 'should see the collection item result page with correct indentation' do
337+
scenario 'should not see html tags for any hightlight field in the search result page' do
338338
visit catalog_index_path( {:q => "#{@aCollection.pid}", 'sort' => 'title_ssi asc'} )
339339
expect(page).to have_content('Showing results for 1 - 4 of 4')
340-
expect(page).to have_selector('div h3 a[data-counter="1"]', :text => 'SOCCOM float data - Snapshot 2016-12-28')
341-
expect(page).to have_selector('div h3 a[data-counter="2"]', :text => 'SOCCOM float data - Snapshot 2017-03-08')
342-
expect(page).to have_selector('div h3 a[data-counter="3"]', :text => 'SOCCOM float data - Snapshot 2016-11-28')
343-
expect(page).to have_selector('div h3 a[data-counter="4"]', :text => 'Southern Ocean Carbon and Climate Observations and Modeling (SOCCOM) Float Data Archive')
340+
expect(page).to_not have_content("<a href=\"http://library.ucsd.edu/dc/collection/<span class='search-highlight'>#{@aCollection.pid}</span>\">")
344341
end
345342

346343
end

0 commit comments

Comments
 (0)