Closed iSCJT closed 1 year ago
can you assign me this?
@bagiyal Are you still up to do this task?
yes sure but I need to do discuss some scenario
Hi! Is this still available to be worked on? I would like to help
Yes feel free to go ahead with this @BeeMargarida!
@AlfonsoGhislieri Thank you, working on it! The most challenging part is testing the lightbox behaviour.
Related to that, are you aware that react-image-lightbox
is deprecated? Are you planning on migrating to another package?
Thanks for looking into this @BeeMargarida, I did not see that we were still using lightbox, thanks for pointing that out. Definitely don't focusing on testing a component using a deprecated package.
This would be a good opportunity to move on and use Photoswipe
and react-photoswipe-gallery
, unless you have any other suggestions? 🤔
Edit: This should expand the scope of this PR to adopting a newer package
@AlfonsoGhislieri Yap, sounds good to me 👍. I can work on migrating it, and looks like a good way to also use the unit tests to verify that no functionality was lost.
Update: I've migrated to photoswipe, just having some troubles with the tests. To test the lightbox behaviour, it's necessary to use canvas with jsdom, since jsdom does not support fetching external resources. However, this also requires some mocking of Image and window methods, so I'm investigating exactly what's necessary to make this work.
:tada: This issue has been resolved in version 1.104.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
ImageGallery.test.tsx needs to be updated to add tests that validate the current functionality of the ImageGallery component.