File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 29
29
# TODO: this data is fetched by a javascript widget and thus isn't captured by webmock see #2817
30
30
expect ( featured_image . iiif_canvas_id ) . to eq 'https://purl.stanford.edu/gk446cj2442/iiif/canvas/cocina-fileSet-gk446cj2442-gk446cj2442_1'
31
31
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'
33
33
end
34
34
35
35
it 'instantiates the multi-image selector when an multi-image item is chosen in the typeahead (and again on edit)' do
Original file line number Diff line number Diff line change 25
25
26
26
visit spotlight . exhibit_feature_page_path ( exhibit , feature_page )
27
27
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']" )
30
30
31
31
click_link ( 'Edit' )
32
32
44
44
save_page_changes
45
45
46
46
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']" )
49
49
end
50
50
end
You can’t perform that action at this time.
0 commit comments