diff --git a/integrations/pull_create_test.go b/integrations/pull_create_test.go index dcbf5fd188e5..16b733adba0d 100644 --- a/integrations/pull_create_test.go +++ b/integrations/pull_create_test.go @@ -21,7 +21,7 @@ func testPullCreate(t *testing.T, session *TestSession, user, repo, branch, titl // Click the PR button to create a pull htmlDoc := NewHTMLParser(t, resp.Body) - link, exists := htmlDoc.doc.Find("#new-pull-request").Parent().Attr("href") + link, exists := htmlDoc.doc.Find("#new-pull-request").Attr("href") assert.True(t, exists, "The template has changed") if branch != "master" { link = strings.Replace(link, ":master", ":"+branch, 1)