package webtest import ( "context" "database/sql" "net/url" "regexp" "strings" "sync" "testing" "time" "amadan.net/oficina/base/internal/config" "amadan.net/oficina/base/internal/store" "amadan.net/oficina/base/internal/web" ) func (a *testApp) setInstall(app, state, errMsg string) { a.t.Helper() ctx := context.Background() if _, err := store.ClaimInstall(ctx, a.DB, app, "acme-"+app+".bab.oncarlos.com"); err != nil { a.t.Fatal(err) } if err := store.SetInstallState(ctx, a.DB, app, state, errMsg); err != nil { a.t.Fatal(err) } } // stepDone reports whether the Home step with this label is ticked. func stepDone(t *testing.T, body, label string) bool { t.Helper() m := regexp.MustCompile(`