Skip to content

Commit c8b4e1e

Browse files
authored
Merge pull request #3463 from projectblacklight/fix-specs
Fix specs: purl now encodes the slash between the druid and filename in the IIIF identifier
2 parents 527db96 + 5df8e2c commit c8b4e1e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spec/features/autocomplete_typeahead_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# TODO: this data is fetched by a javascript widget and thus isn't captured by webmock see #2817
3030
expect(featured_image.iiif_canvas_id).to eq 'https://purl.stanford.edu/gk446cj2442/iiif/canvas/cocina-fileSet-gk446cj2442-gk446cj2442_1'
3131
expect(featured_image.iiif_image_id).to eq 'https://purl.stanford.edu/gk446cj2442/iiif/annotation/cocina-fileSet-gk446cj2442-gk446cj2442_1'
32-
expect(featured_image.iiif_tilesource).to eq 'https://stacks.stanford.edu/image/iiif/gk446cj2442/gk446cj2442_05_0001/info.json'
32+
expect(featured_image.iiif_tilesource).to eq 'https://stacks.stanford.edu/image/iiif/gk446cj2442%2Fgk446cj2442_05_0001/info.json'
3333
end
3434

3535
it 'instantiates the multi-image selector when an multi-image item is chosen in the typeahead (and again on edit)' do

spec/features/javascript/multi_image_select_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
visit spotlight.exhibit_feature_page_path(exhibit, feature_page)
2727
expect(page).to have_css("[data-id='xd327cm9378']")
28-
expect(page).to have_css("img[src='https://stacks.stanford.edu/image/iiif/xd327cm9378/xd327cm9378_05_0001/full/!400,400/0/default.jpg']")
29-
expect(page).to have_no_css("img[src='https://stacks.stanford.edu/image/iiif/xd327cm9378/xd327cm9378_05_0002/full/!400,400/0/default.jpg']")
28+
expect(page).to have_css("img[src='https://stacks.stanford.edu/image/iiif/xd327cm9378%2Fxd327cm9378_05_0001/full/!400,400/0/default.jpg']")
29+
expect(page).to have_no_css("img[src='https://stacks.stanford.edu/image/iiif/xd327cm9378%2Fxd327cm9378_05_0002/full/!400,400/0/default.jpg']")
3030

3131
click_link('Edit')
3232

@@ -44,7 +44,7 @@
4444
save_page_changes
4545

4646
expect(page).to have_css("[data-id='xd327cm9378']")
47-
expect(page).to have_no_css("img[src='https://stacks.stanford.edu/image/iiif/xd327cm9378/xd327cm9378_05_0001/full/!400,400/0/default.jpg']")
48-
expect(page).to have_css("img[src='https://stacks.stanford.edu/image/iiif/xd327cm9378/xd327cm9378_05_0002/full/!400,400/0/default.jpg']")
47+
expect(page).to have_no_css("img[src='https://stacks.stanford.edu/image/iiif/xd327cm9378%2Fxd327cm9378_05_0001/full/!400,400/0/default.jpg']")
48+
expect(page).to have_css("img[src='https://stacks.stanford.edu/image/iiif/xd327cm9378%2Fxd327cm9378_05_0002/full/!400,400/0/default.jpg']")
4949
end
5050
end

0 commit comments

Comments
 (0)