feat: wire gui instance start and delete confirmation

This commit is contained in:
QiuSW
2026-07-22 17:02:59 +08:00
parent 46578c8743
commit 176e3cdad2
12 changed files with 600 additions and 59 deletions
+11
View File
@@ -42,3 +42,14 @@ func TestLaunchSpecNormalizeRejectsUnsafeValues(t *testing.T) {
}
}
}
func TestLaunchSpecNormalizeAllowsAnEmptyTargetURL(t *testing.T) {
profile := filepath.Join(t.TempDir(), "profile")
normalized, err := (LaunchSpec{Kind: BrowserChrome, UserDataDir: profile}).Normalize()
if err != nil {
t.Fatal(err)
}
if normalized.TargetURL != "" {
t.Fatalf("target URL = %q, want empty", normalized.TargetURL)
}
}