From 4061cb32f7aac2fb7d094c9868993a841693e0c5 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 25 Mar 2024 07:13:11 +0100 Subject: [PATCH] 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 ? --- tests/integration/issue_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go index 6c1da4f4a5..38c3a091b5 100644 --- a/tests/integration/issue_test.go +++ b/tests/integration/issue_test.go @@ -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")