mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 17:17:19 +00:00
Make backend code respond correct JSON when creating PR (#25353)
Fix #25351
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user