From 2d915b0e244d9507e8a642e39e451120c222640d Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Fri, 23 Feb 2018 12:30:37 +0800 Subject: [PATCH] Avoid submit_tag to avoid 'Save changes' default --- app/views/reports/new.html.erb | 2 +- test/system/report_diary_entry_test.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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? -- 2.39.5