Improve naming of Error variants in iced_test

This commit is contained in:
Héctor Ramón Jiménez 2025-08-27 06:18:23 +02:00
parent ed873514e5
commit 1c54f5e3e9
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 9 additions and 10 deletions

View file

@ -118,11 +118,11 @@ where
match operation.finish() {
widget::operation::Outcome::Some(output) => {
output.ok_or(Error::NotFound {
output.ok_or(Error::SelectorNotFound {
selector: description,
})
}
_ => Err(Error::NotFound {
_ => Err(Error::SelectorNotFound {
selector: description,
}),
}
@ -148,7 +148,7 @@ where
let target = self.find(selector)?;
let Some(visible_bounds) = target.visible_bounds() else {
return Err(Error::NotVisible {
return Err(Error::TargetNotVisible {
target: Arc::new(target),
});
};