mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 05:41:27 +01:00
[MODERATION] Show graceful error on comment creation (squash) typo
This commit is contained in:
parent
490646302e
commit
1588d4834a
1 changed files with 2 additions and 3 deletions
|
@ -17,7 +17,6 @@ import (
|
||||||
"code.gitea.io/gitea/models/unittest"
|
"code.gitea.io/gitea/models/unittest"
|
||||||
user_model "code.gitea.io/gitea/models/user"
|
user_model "code.gitea.io/gitea/models/user"
|
||||||
forgejo_context "code.gitea.io/gitea/modules/context"
|
forgejo_context "code.gitea.io/gitea/modules/context"
|
||||||
gitea_context "code.gitea.io/gitea/modules/context"
|
|
||||||
"code.gitea.io/gitea/modules/translation"
|
"code.gitea.io/gitea/modules/translation"
|
||||||
"code.gitea.io/gitea/tests"
|
"code.gitea.io/gitea/tests"
|
||||||
|
|
||||||
|
@ -154,7 +153,7 @@ func TestBlockCommentCreation(t *testing.T) {
|
||||||
})
|
})
|
||||||
session.MakeRequest(t, req, http.StatusOK)
|
session.MakeRequest(t, req, http.StatusOK)
|
||||||
|
|
||||||
flashCookie := session.GetCookie(gitea_context.CookieNameFlash)
|
flashCookie := session.GetCookie(forgejo_context.CookieNameFlash)
|
||||||
assert.NotNil(t, flashCookie)
|
assert.NotNil(t, flashCookie)
|
||||||
assert.EqualValues(t, expectedFlash, flashCookie.Value)
|
assert.EqualValues(t, expectedFlash, flashCookie.Value)
|
||||||
})
|
})
|
||||||
|
@ -177,7 +176,7 @@ func TestBlockCommentCreation(t *testing.T) {
|
||||||
})
|
})
|
||||||
session.MakeRequest(t, req, http.StatusOK)
|
session.MakeRequest(t, req, http.StatusOK)
|
||||||
|
|
||||||
flashCookie := session.GetCookie(gitea_context.CookieNameFlash)
|
flashCookie := session.GetCookie(forgejo_context.CookieNameFlash)
|
||||||
assert.NotNil(t, flashCookie)
|
assert.NotNil(t, flashCookie)
|
||||||
assert.EqualValues(t, expectedFlash, flashCookie.Value)
|
assert.EqualValues(t, expectedFlash, flashCookie.Value)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue