mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-02 16:35:19 +02:00
merge commit: fix(ui): Add pasted images to dropzone (#7749)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7749 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
commit
6e58d285c7
10 changed files with 303 additions and 158 deletions
|
@ -629,7 +629,12 @@ func TestIssueCommentAttachment(t *testing.T) {
|
|||
assert.NotEqual(t, 0, id)
|
||||
|
||||
req = NewRequest(t, "GET", fmt.Sprintf("/%s/%s/comments/%d/attachments", "user2", "repo1", id))
|
||||
session.MakeRequest(t, req, http.StatusOK)
|
||||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
var attachments []*api.WebAttachment
|
||||
DecodeJSON(t, resp, &attachments)
|
||||
assert.Len(t, attachments, 1)
|
||||
assert.Equal(t, attachments[0].UUID, uuid)
|
||||
assert.Equal(t, "image/png", attachments[0].MimeType)
|
||||
|
||||
// Using the ID of a comment that does not belong to the repository must fail
|
||||
req = NewRequest(t, "GET", fmt.Sprintf("/%s/%s/comments/%d/attachments", "user5", "repo4", id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue