mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
15 lines
371 B
Rust
15 lines
371 B
Rust
use egui::{include_image, Image};
|
|
use egui_kittest::kittest::Queryable as _;
|
|
use egui_kittest::Harness;
|
|
|
|
#[test]
|
|
fn image_button_should_have_alt_text() {
|
|
let harness = Harness::new_ui(|ui| {
|
|
_ = ui.button(
|
|
Image::new(include_image!("../../../crates/eframe/data/icon.png")).alt_text("Egui"),
|
|
);
|
|
});
|
|
|
|
harness.get_by_label("Egui");
|
|
}
|