mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-20 03:11:35 +02:00
fix(tests): propagate change of comment.blocked_by_user to block_test.go
Signed-off-by: Ellen Emilia Anna Zscheile <fogti+devel@ytrizja.de>
This commit is contained in:
parent
73e7598302
commit
9fbb45fa37
1 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ func TestBlockActions(t *testing.T) {
|
|||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
msg := htmlDoc.doc.Find("div .warning").Text()
|
||||
assert.Contains(t, msg, "You cannot comment on this issue because you are blocked")
|
||||
assert.Contains(t, msg, expectedMessage)
|
||||
})
|
||||
|
||||
t.Run("Blocked by issue poster", func(t *testing.T) {
|
||||
|
@ -285,7 +285,7 @@ func TestBlockActions(t *testing.T) {
|
|||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
msg := htmlDoc.doc.Find("div .warning").Text()
|
||||
assert.Contains(t, msg, "You cannot comment on this issue because you are blocked")
|
||||
assert.Contains(t, msg, expectedMessage)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue