File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
e2etests/tests/kiro_cli_subcommand Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments