feat: add instance list columns and start action

This commit is contained in:
QiuSW
2026-07-22 16:22:59 +08:00
parent c11a64f931
commit 7014f857f1
8 changed files with 105 additions and 33 deletions
+17
View File
@@ -21,6 +21,23 @@ func TestShellStartsWithSemanticInstanceStatuses(t *testing.T) {
}
}
func TestShellInstanceRowsContainRequiredColumnsAndIndependentStartControls(t *testing.T) {
shell := NewShell(material.NewTheme())
if len(shell.rows) < 2 {
t.Fatal("expected fixture rows")
}
for _, row := range shell.rows {
if row.ID == "" || row.Name == "" || row.Browser == "" || row.UserDataDir == "" || row.Status == "" {
t.Fatalf("incomplete instance row: %#v", row)
}
}
first := shell.startClickFor(shell.rows[0].ID)
second := shell.startClickFor(shell.rows[1].ID)
if first == second {
t.Fatal("rows share a start button state")
}
}
func TestShellCancelsOnlyTheActivePathSearch(t *testing.T) {
shell := NewShell(material.NewTheme())
started := make(chan struct{}, 1)