v0.297.0: burn-down round 2 — 24 small rows (R-591 R-568 R-567 R-363 R-547 R-10 R-552 R-251 R-104 R-619 R-362 R-675 R-256 R-257 R-240 R-365 R-425 R-565 R-564 R-603 R-454 R-208 R-457-swept) + the banner countdown and deepCopyStack twins; MinAgent 0.131.0
gates / gates (push) Failing after 50s
gates / gates (push) Failing after 50s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// R-567: the two drive wizard pages pass their TEMPLATE name as Page, and the sidebar's storage
|
||||
// group only knew "storage" / "storage-network" — so on /storage/init and /storage/attach the
|
||||
// Tárhely group was closed and nothing was highlighted, as if the household had left the section.
|
||||
// Asserted through the real handler and the real layout.
|
||||
func TestStorageWizardPages_OpenTheStorageNavGroup(t *testing.T) {
|
||||
s := testServer(t)
|
||||
s.loadTemplates()
|
||||
for _, page := range []string{"storage_init", "storage_attach"} {
|
||||
rr := httptest.NewRecorder()
|
||||
s.storageWizardPageHandler(rr, httptest.NewRequest("GET", "/storage/init", nil), page)
|
||||
body := rr.Body.String()
|
||||
if !strings.Contains(body, `<li class="nav-group is-open">`) || !strings.Contains(body, `aria-expanded="true" aria-controls="nav-group-storage"`) {
|
||||
t.Errorf("R-567 %s: the storage menu group is not open", page)
|
||||
}
|
||||
if !strings.Contains(body, `<a href="/storage" class="active">`) {
|
||||
t.Errorf("R-567 %s: the drives link (/storage) is not marked active", page)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user