feat: add instance list columns and start action
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user