Add line-through for deleted branch on pull request view page (#32500)
Base branch deleted  branch deleted comment  Head branch deleted 
This commit is contained in:
parent
a32cfb2a8d
commit
a175f9805c
4 changed files with 11 additions and 4 deletions
|
@ -589,7 +589,8 @@ func TestPullDontRetargetChildOnWrongRepo(t *testing.T) {
|
|||
resp := session.MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
targetBranch := htmlDoc.doc.Find("#branch_target>a").Text()
|
||||
// the branch has been deleted, so there is no a html tag instead of span
|
||||
targetBranch := htmlDoc.doc.Find("#branch_target>span").Text()
|
||||
prStatus := strings.TrimSpace(htmlDoc.doc.Find(".issue-title-meta>.issue-state-label").Text())
|
||||
|
||||
assert.EqualValues(t, "base-pr", targetBranch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue