Skip to content

Unable to generate screenshot test with displayed keyboard #1926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
michal-chojnacki opened this issue Apr 22, 2025 · 1 comment
Open

Unable to generate screenshot test with displayed keyboard #1926

michal-chojnacki opened this issue Apr 22, 2025 · 1 comment
Labels
bug Something isn't working waiting on user Waiting on information from OP

Comments

@michal-chojnacki
Copy link

Description
When I'm recording snapshot tests of a composable that contains a focused text input, the software keyboard is not visible in the screenshot.
Additionally, when recording a GIF, I can see the blinking cursor inside the input field, but the keyboard still doesn't appear.

Steps to Reproduce
I've tried to record view with similar code to attached in discussion: #1133 (comment)

I've tried to record with various configurations using all possible values of keyboardState or keyboard in DeviceConfig but none of them caused the keyboard to appear in the snapshot or GIF.

Expected behavior
Keyboard should be drawn

Additional information:

  • Paparazzi Version: 1.3.5
  • Compile SDK: 35
  • Gradle Version: 8.11.1
  • Android Gradle Plugin Version: 8.9.1
@michal-chojnacki michal-chojnacki added the bug Something isn't working label Apr 22, 2025
@geoff-powell
Copy link
Collaborator

Does the keyboard show when rendering your composable in Preview on Android Studio.
I am pretty sure this is a limitation of layoutlib but I can give it a look.

@geoff-powell geoff-powell added the waiting on user Waiting on information from OP label May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting on user Waiting on information from OP
Projects
None yet
Development

No branches or pull requests

2 participants