Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a testing library to egui based on AccessKit. The api is inspired by the js testing-library where the idea is also to query the dom based on accessibility attributes.
I think a part of this can be generalized in a general ui testing library that works with all rust ui frameworks with accesskit support. This is currently in the accesskit_query crate in the PR but I think this should probably be put in a new repository? Currently it's a very light extension to accesskit_consumer with a trait but I want to add a lot more utility functions there to make testing as ergonomic as possible.
The egui testing library is called etest, but unfortunately that crate name is already taken so it will need to be renamed.
It currently has support for:
A simple test looks like this:
Since getting wgpu to run in ci is a hassle, I'm taking another shot at creating a software renderer for egui (ideally without a huge dependency like skia)