Files
archie/internal/webui/webui_test_missing_features.go
T
sam f8df051b19 feat: bounded concurrent task dispatch in daemon (archie-core-u64)
Daemon previously processed one task at a time. Add bounded concurrent
dispatch for SQLite and NATS agent modes, reusing [containers].max_concurrency
(0 = unlimited). Same-repository tasks stay FIFO-serialized to avoid worktree
conflicts; different repositories now run concurrently.

Unblocks archie-core-l1q (NATS transport) and archie-core-g1l
(per-repo allow_concurrent override).
2026-07-24 07:42:13 +10:00

34 lines
776 B
Go

//go:build ignore
package webui
import (
"strings"
"testing"
)
func TestIndexHasResponsiveFeatures(t *testing.T) {
srv := newTestServer(t)
req := httptest.NewRequest("GET", "/", nil)
w := httptest.NewRecorder()
srv.Handler().ServeHTTP(w, req)
if w.Code != http.StatusOK {
t.Fatalf("status = %d", w.Code)
}
body := w.Body.String()
reqs := []struct {
name string
want string
}{
{"mobile-font-padding", "section { min-height: 1.25rem; }"},
{"table-wrap", "section .table-wrap { position: relative; overflow-x: auto;"},
{"feed-wraps", "white-space: normal"},
{"700px-breakpoint", "@media (max-width: 700px)"},
}
for _, r := range reqs {
if !strings.Contains(body, r.want) {
t.Errorf("missing responsive feature %q: %q", r.name, r.want)
}
}
}