Skip to content

Commit 675616d

Browse files
authored
Mask platform-specific menu entry in app kittest (#11387)
Failed on Windows because Alt-F4 is displayed there.
1 parent 9b453be commit 675616d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/viewer/re_viewer/tests/app_kittest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ async fn menu_without_recording() {
4848
let mut harness = viewer_test_utils::viewer_harness();
4949
harness.get_by_label("Menu").click();
5050
harness.run_ok();
51+
// Mask the shortcut for quitting, it's platform-dependent.
52+
harness.mask(harness.get_by_label_contains("Quit").rect());
5153
harness.snapshot_options(
5254
"menu_without_recording",
5355
&SnapshotOptions::new().failed_pixel_count_threshold(2),
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)