Skip to content

Commit ccb958b

Browse files
committed
Add test for kiro-cli dashboard subcommand with detailed output verification
1 parent 9a195da commit ccb958b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#[allow(unused_imports)]
2+
use q_cli_e2e_tests::q_chat_helper;
3+
4+
#[test]
5+
#[cfg(all(feature = "kiro_cli_subcommand", feature = "sanity"))]
6+
fn test_kiro_cli_dashboard_subcommand() -> Result<(), Box<dyn std::error::Error>> {
7+
println!("\n🔍 Testing kiro-cli dashboard subcommand... | Description: Tests the <code> kiro-cli dashboard </code> subcommand that open kiro-cli dashboard");
8+
9+
println!("\n🔍 Executing 'kiro-cli dashboard' subcommand...");
10+
let response = q_chat_helper::execute_q_subcommand("kiro-cli", &["dashboard"])?;
11+
12+
println!("📝 Response: {} bytes", response.len());
13+
println!("📝 FULL OUTPUT:");
14+
println!("{}", response);
15+
println!("📝 END OUTPUT");
16+
17+
assert!(response.contains("Opening"), "Expected 'Opening' message in response");
18+
assert!(response.contains("Kiro CLI dashboard"), "Expected 'Kiro CLI dashboard' message in response");
19+
20+
println!("✅ Kiro Cli dashboard executed successfully!");
21+
22+
Ok(())
23+
}

0 commit comments

Comments
 (0)