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:
Ellen Emilia Anna Zscheile 2025-03-28 00:14:00 +01:00
parent 73e7598302
commit 9fbb45fa37

View file

@ -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)
})
})