]> git.openstreetmap.org Git - rails.git/commitdiff
Avoid submit_tag to avoid 'Save changes' default
authorAndy Allan <git@gravitystorm.co.uk>
Fri, 23 Feb 2018 04:30:37 +0000 (12:30 +0800)
committerAndy Allan <git@gravitystorm.co.uk>
Fri, 23 Feb 2018 04:30:37 +0000 (12:30 +0800)
app/views/reports/new.html.erb
test/system/report_diary_entry_test.rb

index 705457cb6bb486d36ffe301dc06b89a5796b88c1..7acf91d9c40354b858753d1f83280dda6a7eaca5 100644 (file)
@@ -36,7 +36,7 @@
     </div>
 
     <div class='buttons'>
-      <%= submit_tag %>
+      <%= f.submit %>
     </div>
   </fieldset>
 <% end %>
index 542e8ba0c8e6bec68b436fcc17bde7b0d984ab01..988bfbe1f095cc450088d09946c64ac30941efbe 100644 (file)
@@ -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?