Remove unnecessary ".Link" usages (#29909) (part 2)

5143ebb507 Add rel="nofollow" to issue filter links

has a test that fails because it assumes the link starts with the link
where it now starts with a ?
This commit is contained in:
Earl Warren 2024-03-25 07:13:11 +01:00
parent c758c5612e
commit 4061cb32f7
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -807,7 +807,7 @@ func TestIssueFilterNoFollow(t *testing.T) {
htmlDoc := NewHTMLParser(t, resp.Body)
// Check that every link in the filter list has rel="nofollow".
filterLinks := htmlDoc.Find(".issue-list-toolbar-right a[href*=\"/issues?q=\"]")
filterLinks := htmlDoc.Find(".issue-list-toolbar-right a[href*=\"?q=\"]")
assert.True(t, filterLinks.Length() > 0)
filterLinks.Each(func(i int, link *goquery.Selection) {
rel, has := link.Attr("rel")