addons-frontend
addons-frontend copied to clipboard
Try to get test coverage for the onOpenPhotoswipe function in ScreenShots
When converting TestScreenShots.js, I have been unable to get a test working that tests the functionality implemented via the onOpenPhotoswipe
function. We cannot write a test the way we did before, which accesses the internal function on the shallow rendered object. I have tried a number of things that involve interacting with the component, but none of them seem to report the scrollLeft
setter being called.
I have commented out the test for now, but we should see if we can figure out how to get a working test for this.
I spent a lot of time on this already, and I don't plan to burn much more time on it, so I am going to remove it from the project, but leave it open as something to possibly fix in the future.