Skip to content

Commit cca6f9f

Browse files
author
Nitish [C] Dhok
committed
kiro-cli e2e tests: handled condition for linux.
1 parent 25175d4 commit cca6f9f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

e2etests/tests/sub_integrations/test_kiro_cli_sub_integrations_install_subcommand.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,16 @@ fn test_kiro_cli_sub_integrations_uninstall_vscode_subcommand() -> Result<(), Bo
167167
println!("{}", response);
168168
println!("📝 END OUTPUT");
169169

170-
assert!(response.contains("Warning"),"Expected 'Warning' in response.");
171-
assert!(response.contains("VSCode"), "Expected 'VSCode' in response.");
172-
assert!(response.contains("automatically"), "Expected 'automatically' in response.");
170+
if response.contains("error") {
171+
assert!(response.contains("VSCode"), "Expected 'VSCode!' in response.");
172+
assert!(response.contains("integration"), "Expected 'integration' in response.");
173+
assert!(response.contains("macOS"), "Expected 'macOS' in response.");
174+
} else if response.contains("Not installed") {
175+
assert!(response.contains("Warning"),"Expected 'Warning' in response.");
176+
assert!(response.contains("VSCode"), "Expected 'VSCode' in response.");
177+
assert!(response.contains("automatically"), "Expected 'automatically' in response.");
178+
}
179+
173180

174181
println!("✅ Kiro Cli integrations install vscode subcommand executed successfully!");
175182

0 commit comments

Comments
 (0)