You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Even though we enable Hardware native graphics, Cross-Library screenshot tests executed with Roborazzi do not render shadows when screenshot testing dialogs.
It works for Composables and Views though.
Additional context
That happens because in the method snapshotDialog(), The RoborazziScreenshotTestRuleForViewuses drawToBitmap(), which uses Canvas (no elevation).
The best fix for this would be to add an option in RoborazziConfig for the BitmapCaptureMethod, analogue to that of DropshotsConfig, ShotConfig and AndroidTestifyConfig, to choose whether to render with or without elevation
The text was updated successfully, but these errors were encountered:
Describe the bug
Even though we enable Hardware native graphics, Cross-Library screenshot tests executed with Roborazzi do not render shadows when screenshot testing dialogs.
It works for Composables and Views though.
Additional context
That happens because in the method
snapshotDialog()
, TheRoborazziScreenshotTestRuleForView
usesdrawToBitmap()
, which uses Canvas (no elevation).The best fix for this would be to add an option in
RoborazziConfig
for the BitmapCaptureMethod, analogue to that ofDropshotsConfig
,ShotConfig
andAndroidTestifyConfig
, to choose whether to render with or without elevationThe text was updated successfully, but these errors were encountered: