Commit ad2769cd22

ad2769cd228b728d6c6cd8c8a62950c49c46922f

parent: 3aa67f5b23

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-19 22:52 UTC

e2e: the merge request list's facet column

No test rendered the column on /{owner}/{repo}/mrs; mrsrow_test.go
passes a nil Facets. TestMRWebLabels already labels a merge request and
holds a session, so it asserts the column lists the label with its merge
request count and a link that keeps the state.

Ref #226
e2e/mrweb_test.go +10
@@ -575,6 +575,16 @@ func TestMRWebLabels(t *testing.T) {
575575 t.Fatalf("removed label still lists the merge request:\n%s", body)
576576 }
577577
578 // The list's column lists the label with its merge request count and a
579 // link that keeps the state (desktop layout spec).
580 _, body = browserGet(t, alice, inst.base()+"/alice/app/mrs")
581 if !strings.Contains(body, `<nav class="sidecol" aria-label="Filters">`) {
582 t.Fatalf("merge request list lacks the side column:\n%s", body)
583 }
584 if !strings.Contains(body, `href="?label=bug&amp;state=open">bug <i>1</i></a>`) {
585 t.Fatalf("merge request column lacks the bug facet:\n%s", body)
586 }
587
578588 // A reader gets the chips and no form.
579589 _, body = browserGet(t, inst.login(t, bobKey), mrURL)
580590 if !strings.Contains(body, `class="chip label"`) {