How to implement UX tests with FileDialog? #4741
Unanswered
sunny-chung
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As Compose Multiplatform doesn't have file chooser yet, I read others' solution using AWT FileDialog and able to make it works with Compose Desktop:
However, when it comes to testing, I am not sure how to "select a file and dismiss" the
FileDialog
. The only hack I could think of is to store theFileDialog
instances to global variables, remove the instance references on dispose, and manipulate the instances via global variables during the test.Any better options? I don't mind bypassing the dialog, but I need to continue the UX flow.
Beta Was this translation helpful? Give feedback.
All reactions