addons-frontend icon indicating copy to clipboard operation
addons-frontend copied to clipboard

Try to get test coverage for the onOpenPhotoswipe function in ScreenShots

Open bobsilverberg opened this issue 2 years ago • 1 comments

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.

bobsilverberg avatar May 12 '22 12:05 bobsilverberg

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.

bobsilverberg avatar Jun 22 '22 15:06 bobsilverberg