linebender / xilem

An experimental Rust native UI framework
Apache License 2.0
4.24k stars 131 forks source link

Automated testing of accessibility #924

Open DJMcNab opened 3 weeks ago

DJMcNab commented 3 weeks ago

In #923, we found that we set the bounds for accessibility wrong, which wasn't caught. I can see a few classes of tests which would help with this: 1) Tests which overlay all accessibility bounds on the app 2) Tests which use the accessibility bounds as the basis for e.g. a click/hover position, to make sure that the expected widget is clicked/hovered.

waywardmonkeys commented 3 weeks ago

Have to ask if https://crates.io/crates/kittest would be useful here for testing since it uses the AccessKit data.