File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11< div class ="<%= html_classes %> ">
22 <% if display_thumbnail? %>
3- < img src ="<%= thumbnail_url %> " class ="bordered-thumbnail-image " alt ="">
3+ < img src ="<%= thumbnail_url %> " class ="bordered-thumbnail-image " alt ="Thumbnail image for <%= resource . title %> ">
44 <% else %>
5- < i class ='material-icons material-icons--thumbnail '> <%= icon %> </ i >
5+ < i class ='material-icons material-icons--thumbnail ' alt =" Default thumbnail image for <%= resource . title %> " > <%= icon %> </ i >
66 <% end %>
77</ div >
Original file line number Diff line number Diff line change 313313 it 'displays the thumbnail' do
314314 expect ( page ) . to have_css ( "img[src='url.com/path/file']" )
315315 expect ( page ) . to have_css ( '.thumbnail-card' )
316+ expect ( page ) . to have_css ( "img[alt='Thumbnail image for #{ work . title } ']" )
316317 end
317318 end
318319 end
439440 it 'displays the thumbnail' do
440441 expect ( page ) . to have_css ( "img[src='url.com/path/file']" )
441442 expect ( page ) . to have_css ( '.thumbnail-card' )
443+ expect ( page ) . to have_css ( "img[alt='Thumbnail image for #{ collection . title } ']" )
442444 end
443445 end
444446 end
You can’t perform that action at this time.
0 commit comments