CI · the crate's tests and the gallery on Linux, Windows and macOS, arm64 and x86_64; tests type the platform's secondary key

This commit is contained in:
ZacharyZhang-NY committed 2026-10-04 00:00:43 -04:00
1 parent bbe45a4bcd
commit 59c73f18f2
10 files changed
+45 -30

No files matched your search

+2 -2
View File
@@ -61,7 +61,7 @@ fn cmd_enter_in_a_field_submits_the_form_once(cx: &mut TestAppContext) {
let (view, cx) = signup(cx);
cx.update(|window, cx| window.focus_next(cx));
cx.simulate_input("Ada");
cx.simulate_keystrokes("cmd-enter");
cx.simulate_keystrokes("secondary-enter");
let counts = view.read_with(cx, |view, _| (view.sent, view.field_submits));
assert_eq!(counts, (1, 0));
}
@@ -73,7 +73,7 @@ fn cmd_enter_on_any_control_in_a_form_submits_it(cx: &mut TestAppContext) {
window.focus_next(cx);
window.focus_next(cx);
});
cx.simulate_keystrokes("cmd-enter");
cx.simulate_keystrokes("secondary-enter");
assert_eq!(
view.read_with(cx, |view, _| view.sent),
1,