commit | 559e9db775ac684ae4c24bcd8f9503c89455958e | [log] [tgz] |
---|---|---|
author | Jamal Carvalho <jamal@golang.org> | Wed Mar 24 14:53:46 2021 -0400 |
committer | Jamal Carvalho <jamal@golang.org> | Wed Mar 24 21:38:26 2021 +0000 |
tree | b8bf6e632c1cfce62c0feab046191ed07dfa184f | |
parent | 4e9e4e94bc83ae5cf6144a8acaee449720db1e25 [diff] |
content/static: add test id to unit header title Change-Id: I9bc8b3bd9a04aedb3ab3330a8ea66b6544eddfb6 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/304510 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
diff --git a/content/static/html/helpers/_unit_header.tmpl b/content/static/html/helpers/_unit_header.tmpl index 435168c..12a71f7 100644 --- a/content/static/html/helpers/_unit_header.tmpl +++ b/content/static/html/helpers/_unit_header.tmpl
@@ -76,7 +76,7 @@ <img height="72px" width="72px" class="UnitHeader-logo" src="/static/img/go-logo-blue.svg" alt="Go"> </a> </div> - <h1>{{.Title}}</h1> + <h1 data-test-id="UnitHeader-title">{{.Title}}</h1> {{range .PageLabels}} <span class="UnitHeader-badge">{{.}}</span> {{end}}