Skia canvas not showing up in Detox element screenshots #1880
Replies: 2 comments 17 replies
-
Can you confirm that this only happens on Android? On a private project we had a similar issue on Android. They essentially where getting the bitmap of the android view without taking TextureViews into account (which what React Native Skia uses). If this is the case, we can try to identify which part of Detox runs this code and make a suggestion on how to fix on Github. This is an issue on both platform, could it be related to a GPU backend not being available when running the tests (e.g CI system). |
Beta Was this translation helpful? Give feedback.
-
I am working on a pr to fix this in Detox and already have some working code for android in a local branch The detox test app which I need to extend for an e2e test case is made with pure react-native, no expo.
This error comes up from just installing rn skia and adding a simple example page. Without skia, the app compiles fine: With google I only found this similar error: Unfortunately I have no experience on how rn native modules are working and due to the lack of google results I somewhat reached a dead end here. Do you have any hints or ideas for me on how to proceed with this @wcandillon ? |
Beta Was this translation helpful? Give feedback.
-
Problem
We are working on creating automatic screenshots of our app using Detox e2e testing.
While Detox's
takeScreenshot()
method works for full screen screenshots, it does not work well with element based screenshots. (In combination with a Skia canvas)See example
This element should show Skia Images
Expected behaviour
The Skia canvas with it's elements should show up when taking screenshots of elements using Detox.
Question
Is this issue Skia related or is this an issue with Detox and the way they take screenshots of elements?
Beta Was this translation helpful? Give feedback.
All reactions