X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a0dc300840c236d6460c0641f8a9f47246815ad1..c77429000c55af95056572206a99774711c8d22b:/test/system/report_user_test.rb diff --git a/test/system/report_user_test.rb b/test/system/report_user_test.rb index 3dfbf4f1f..9d919523b 100644 --- a/test/system/report_user_test.rb +++ b/test/system/report_user_test.rb @@ -12,7 +12,7 @@ class ReportUserTest < ApplicationSystemTestCase def test_can_report_user user = create(:user) sign_in_as(create(:user)) - visit user_path(user.display_name) + visit user_path(user) click_on I18n.t("user.show.report") assert page.has_content? "Report" @@ -33,7 +33,7 @@ class ReportUserTest < ApplicationSystemTestCase def test_it_promotes_issues user = create(:user) sign_in_as(create(:user)) - visit user_path(user.display_name) + visit user_path(user) click_on I18n.t("user.show.report") assert page.has_content? "Report" @@ -50,7 +50,7 @@ class ReportUserTest < ApplicationSystemTestCase assert_equal user, Issue.last.reportable assert_equal "moderator", Issue.last.assigned_role - visit user_path(user.display_name) + visit user_path(user) click_on I18n.t("user.show.report") assert page.has_content? "Report"