Commit ad2769cd22
Verified · cmc
e2e/mrweb_test.go +10
| @@ -575,6 +575,16 @@ func TestMRWebLabels(t *testing.T) { | ||
| 575 | 575 | t.Fatalf("removed label still lists the merge request:\n%s", body) |
| 576 | 576 | } |
| 577 | 577 | |
| 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&state=open">bug <i>1</i></a>`) { | |
| 585 | t.Fatalf("merge request column lacks the bug facet:\n%s", body) | |
| 586 | } | |
| 587 | ||
| 578 | 588 | // A reader gets the chips and no form. |
| 579 | 589 | _, body = browserGet(t, inst.login(t, bobKey), mrURL) |
| 580 | 590 | if !strings.Contains(body, `class="chip label"`) { |