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
Fix CI screenshot test to capture native widgets properly
The CI instrumentation test was using Android's native View.draw() method
to capture screenshots, which doesn't properly include PeerComponents like
BrowserComponent (native WebView).
This change updates the test to use Codename One's screenshot API
(Display.getInstance().screenshot()) which properly captures native widgets
via the AndroidScreenshotTask implementation that was fixed in PR #4107.
Key changes:
- Replace direct View.draw() with CN1 screenshot API
- Add proper synchronization using CountDownLatch
- Convert CN1 Image to Android Bitmap for encoding
- Maintain same output format for CI pipeline compatibility
This ensures BrowserComponent and other native widgets are now visible
in CI screenshots.
0 commit comments