Skip to content

Commit 3e14585

Browse files
committed
Fix test
1 parent c9f3fa7 commit 3e14585

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/pull_merge_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,8 @@ func TestPullDontRetargetChildOnWrongRepo(t *testing.T) {
589589
resp := session.MakeRequest(t, req, http.StatusOK)
590590

591591
htmlDoc := NewHTMLParser(t, resp.Body)
592-
targetBranch := htmlDoc.doc.Find("#branch_target>a").Text()
592+
// the branch has been deleted, so there is no a html tag instead of span
593+
targetBranch := htmlDoc.doc.Find("#branch_target>span").Text()
593594
prStatus := strings.TrimSpace(htmlDoc.doc.Find(".issue-title-meta>.issue-state-label").Text())
594595

595596
assert.EqualValues(t, "base-pr", targetBranch)

0 commit comments

Comments
 (0)