]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/user_blocks_test.rb
Add revoke all blocks page title
[rails.git] / test / system / user_blocks_test.rb
index e1247d6a40b2d116dbd20addd137fd68e67c89d0..66a8befec2d0b9437b218bb4afc761e1f921aef8 100644 (file)
@@ -27,12 +27,16 @@ class ReportNoteTest < ApplicationSystemTestCase
     assert_no_link "Revoke all blocks"
   end
 
-  test "revoke all link is present for moderators when viewed user has active blocks" do
+  test "revoke all link is present and working for moderators when viewed user has active blocks" do
     blocked_user = create(:user)
     create(:user_block, :user => blocked_user)
     sign_in_as(create(:moderator_user))
 
     visit user_path(blocked_user)
     assert_link "Revoke all blocks"
+
+    click_link "Revoke all blocks"
+    assert_title "Revoking all blocks on #{blocked_user.display_name}"
+    assert_text "Revoking all blocks on #{blocked_user.display_name}"
   end
 end