X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fb3326778b5d8f0a70ba0873bbd2339930108311..bcf5782fb5a3a916ea036ce78ecd2a1208ace87f:/test/system/user_muting_test.rb?ds=sidebyside diff --git a/test/system/user_muting_test.rb b/test/system/user_muting_test.rb index ce4346115..d46d5a04c 100644 --- a/test/system/user_muting_test.rb +++ b/test/system/user_muting_test.rb @@ -10,18 +10,18 @@ class UserMutingTest < ApplicationSystemTestCase sign_in_as(user) visit user_path(other_user) - click_link "Mute this User" + click_on "Mute this User" assert_content "You muted #{other_user.display_name}" - visit edit_account_path + visit account_path assert_content "Muted Users" - click_link "Muted Users" + click_on "Muted Users" assert_content "You have muted 1 User" - click_link "Unmute" + click_on "Unmute" assert_content "You unmuted #{other_user.display_name}" refute_content "Muted Users" - assert_current_path edit_account_path + assert_current_path account_path end test "messages sent by muted users are set `muted` and do not cause notification emails" do @@ -35,7 +35,7 @@ class UserMutingTest < ApplicationSystemTestCase fill_in "Body", :with => "some message" assert_no_emails do - click_button "Send" + click_on "Send" end message = Message.find_by(:sender => muted_user, :recipient => user)