Test redacted element state after redaction action

This commit is contained in:
Anton Khorev 2025-02-09 18:18:25 +03:00
parent ddebb42a8e
commit d0c68c4041
3 changed files with 6 additions and 0 deletions

View file

@ -228,7 +228,9 @@ module Api
auth_header = bearer_authorization_header create(:moderator_user)
do_redact_node(node_v3, create(:redaction), auth_header)
assert_response :success, "should be OK to redact old version as moderator."
assert_predicate node_v3.reload, :redacted?
# check moderator can still see the redacted data, when passing
# the appropriate flag

View file

@ -215,7 +215,9 @@ module Api
auth_header = bearer_authorization_header create(:moderator_user)
do_redact_relation(relation_v3, create(:redaction), auth_header)
assert_response :success, "should be OK to redact old version as moderator."
assert_predicate relation_v3.reload, :redacted?
# check moderator can still see the redacted data, when passing
# the appropriate flag

View file

@ -223,7 +223,9 @@ module Api
auth_header = bearer_authorization_header create(:moderator_user)
do_redact_way(way_v3, create(:redaction), auth_header)
assert_response :success, "should be OK to redact old version as moderator."
assert_predicate way_v3.reload, :redacted?
# check moderator can still see the redacted data, when passing
# the appropriate flag