Avoid submit_tag to avoid 'Save changes' default

This commit is contained in:
Andy Allan 2018-02-23 12:30:37 +08:00
parent 7b5e0d91f3
commit 2d915b0e24
2 changed files with 3 additions and 3 deletions

View 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?