Change submit button on block edit page when can only revoke

This commit is contained in:
Anton Khorev 2024-08-21 17:07:40 +03:00
parent 11a7bf7e0e
commit 76736bab4f
4 changed files with 14 additions and 5 deletions

View file

@ -111,7 +111,7 @@ class UserBlocksSystemTest < ApplicationSystemTestCase
assert_no_field "Needs view"
fill_in "Reason", :with => "Revoking 0-hour blocks works"
click_on "Update block"
click_on "Revoke block"
assert_text(/Revoker:\s+#{Regexp.escape other_moderator_user.display_name}/)
assert_text(/Status:\s+Ended/)
assert_text(/Reason for block:\s+Revoking 0-hour blocks works/)