From: Andy Allan Date: Fri, 23 Feb 2018 04:30:37 +0000 (+0800) Subject: Avoid submit_tag to avoid 'Save changes' default X-Git-Tag: live~2989^2~57 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2d915b0e244d9507e8a642e39e451120c222640d Avoid submit_tag to avoid 'Save changes' default --- diff --git a/app/views/reports/new.html.erb b/app/views/reports/new.html.erb index 705457cb6..7acf91d9c 100644 --- a/app/views/reports/new.html.erb +++ b/app/views/reports/new.html.erb @@ -36,7 +36,7 @@
- <%= submit_tag %> + <%= f.submit %>
<% end %> diff --git a/test/system/report_diary_entry_test.rb b/test/system/report_diary_entry_test.rb index 542e8ba0c..988bfbe1f 100644 --- a/test/system/report_diary_entry_test.rb +++ b/test/system/report_diary_entry_test.rb @@ -24,7 +24,7 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase choose I18n.t("reports.categories.DiaryEntry.spam") fill_in "report_details", :with => "This is advertising" - click_on "Save changes" + click_on "Create Report" assert page.has_content? "Your report has been registered sucessfully" end @@ -43,7 +43,7 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase choose I18n.t("reports.categories.DiaryEntry.spam") fill_in "report_details", :with => "This is advertising" - click_on "Save changes" + click_on "Create Report" issue.reload assert !issue.resolved?