Skip to content

Commit 7cb3180

Browse files
committed
Fix: use specific key for macos.
1 parent bb22c25 commit 7cb3180

File tree

1 file changed

+9
-1
lines changed
  • server/tests/overall_core

1 file changed

+9
-1
lines changed

server/tests/overall_core/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,15 @@ async fn test_client_updates_core(
11631163
let code_line_css = ".CodeChat-CodeMirror .cm-line";
11641164
let code_line = driver_ref.find(By::Css(code_line_css)).await.unwrap();
11651165
code_line
1166-
.send_keys(Key::Alt + Key::Control + "g")
1166+
.send_keys(
1167+
Key::Alt
1168+
+ if cfg!(target_os = "macos") {
1169+
Key::Command
1170+
} else {
1171+
Key::Control
1172+
}
1173+
+ "g",
1174+
)
11671175
.await
11681176
.unwrap();
11691177
// Enter a line in the dialog that pops up.

0 commit comments

Comments
 (0)