forked from forgejo/forgejo
Make backend code respond correct JSON when creating PR (#25353)
Fix #25351
This commit is contained in:
parent
c09d0b4952
commit
b4e4b7ad51
4 changed files with 25 additions and 50 deletions
|
@ -199,7 +199,7 @@ func TestCantMergeWorkInProgress(t *testing.T) {
|
|||
|
||||
resp := testPullCreate(t, session, "user1", "repo1", "master", "[wip] This is a pull title")
|
||||
|
||||
req := NewRequest(t, "GET", resp.Header().Get("Location"))
|
||||
req := NewRequest(t, "GET", test.RedirectURL(resp))
|
||||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
text := strings.TrimSpace(htmlDoc.doc.Find(".merge-section > .item").Last().Text())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue