musicbrainz-provider #2
@@ -80,6 +80,12 @@ func TestDashboard_Authenticated200(t *testing.T) {
|
|||||||
if !strings.Contains(body, "mbid-1") {
|
if !strings.Contains(body, "mbid-1") {
|
||||||
t.Errorf("expected MBID rendered, got:\n%s", body)
|
t.Errorf("expected MBID rendered, got:\n%s", body)
|
||||||
}
|
}
|
||||||
|
// The dashboard must link each artist to its detail page, otherwise the
|
||||||
|
// ignore/restore/singles actions on that page are unreachable via normal UI
|
||||||
|
// navigation.
|
||||||
|
if !strings.Contains(body, `href="/artist/a1"`) {
|
||||||
|
t.Errorf("expected link to artist detail page, got:\n%s", body)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDashboard_Unauthenticated401(t *testing.T) {
|
func TestDashboard_Unauthenticated401(t *testing.T) {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{{ range .Artists }}
|
{{ range .Artists }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ .Name }}</td>
|
<td><a href="/artist/{{ .ID }}">{{ .Name }}</a></td>
|
||||||
<td class="count {{ if eq .MissingCount 0 }}count-zero{{ else }}count-missing{{ end }}">
|
<td class="count {{ if eq .MissingCount 0 }}count-zero{{ else }}count-missing{{ end }}">
|
||||||
{{ .MissingCount }}
|
{{ .MissingCount }}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user