VE-1678: Adding test to preview images in gallery dialog by clicking on title or metadata