From: Frederik Ramm Date: Tue, 19 Jan 2021 19:56:43 +0000 (+0100) Subject: Fix a small typo and tests that depend on it. X-Git-Tag: live~2286^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d14083129c244475079270505f69f747c491f96b Fix a small typo and tests that depend on it. --- diff --git a/config/locales/en.yml b/config/locales/en.yml index 68517bee6..24f2348c1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1281,7 +1281,7 @@ en: open: Open resolved: Resolved update: - new_report: Your report has been registered sucessfully + new_report: Your report has been registered successfully successful_update: Your report has been updated successfully provide_details: Please provide the required details show: @@ -1352,7 +1352,7 @@ en: abusive_label: This note is abusive other_label: Other create: - successful_report: Your report has been registered sucessfully + successful_report: Your report has been registered successfully provide_details: Please provide the required details layouts: project_name: diff --git a/test/system/report_diary_comment_test.rb b/test/system/report_diary_comment_test.rb index 61879a32f..a8027de79 100644 --- a/test/system/report_diary_comment_test.rb +++ b/test/system/report_diary_comment_test.rb @@ -29,7 +29,7 @@ class ReportDiaryCommentTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal @comment, Issue.last.reportable assert_equal "administrator", Issue.last.assigned_role diff --git a/test/system/report_diary_entry_test.rb b/test/system/report_diary_entry_test.rb index 9d232f8d4..11a8c2e91 100644 --- a/test/system/report_diary_entry_test.rb +++ b/test/system/report_diary_entry_test.rb @@ -28,7 +28,7 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal @diary_entry, Issue.last.reportable assert_equal "administrator", Issue.last.assigned_role diff --git a/test/system/report_note_test.rb b/test/system/report_note_test.rb index 93e73cf5a..e45a4e702 100644 --- a/test/system/report_note_test.rb +++ b/test/system/report_note_test.rb @@ -24,7 +24,7 @@ class ReportNoteTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal note, Issue.last.reportable assert_equal "moderator", Issue.last.assigned_role @@ -45,7 +45,7 @@ class ReportNoteTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal note, Issue.last.reportable assert_equal "moderator", Issue.last.assigned_role diff --git a/test/system/report_user_test.rb b/test/system/report_user_test.rb index 7b49f2997..5bdf3c201 100644 --- a/test/system/report_user_test.rb +++ b/test/system/report_user_test.rb @@ -24,7 +24,7 @@ class ReportUserTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal user, Issue.last.reportable assert_equal "moderator", Issue.last.assigned_role @@ -45,7 +45,7 @@ class ReportUserTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal user, Issue.last.reportable assert_equal "moderator", Issue.last.assigned_role @@ -62,7 +62,7 @@ class ReportUserTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal user, Issue.last.reportable assert_equal "administrator", Issue.last.assigned_role