balvig / utensils

Rspec stuff we use over and over again
MIT License
11 stars 9 forks source link

Add `visible: false` option to lazy loaded image matcher #16

Closed samrjenkins closed 4 years ago

samrjenkins commented 4 years ago

https://github.com/balvig/utensils/pull/15 amended the lazy loaded image matcher. It looks as if, in order for the matcher to correctly match lazy loads, it requires visible: false as in: https://github.com/cookpad/global-web/blob/21da0db41f57cabb448ad2c13a4cb73604ae8dee/spec/support/matchers/have_lazy_loaded_image.rb#L3