Repository navigation
Investigate the possibility of testing elements #351
Closed
djowel
started this conversation in
Other features
Replies: 2 comments
|
You might want to expose an interface that allows issuing events programatically. Eg issue a virtual click at some coordinates and verify that state changed accordingly. If rendering in well-separated from the logic it should be trivial to test correct behavior. |
0 replies
|
Done for Elements 1.0: golden-image comparisons plus simulated input, on every host and on a headless one, with CI on macOS, Linux and Windows: https://cycfi.github.io/elements/elements/v1.0/testing.html |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Testing GUIs is tricky. but nevertheless, I don't feel good without tests. Right now, I have to build the examples and inspect each one of them to make sure everything is good.
At the very least, a quick testing facility is probably something like:
It might be possible to simulate user interaction, but that can probably be done later.
All reactions