We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57bf14e commit cf6179aCopy full SHA for cf6179a
app/views/facility_estimates/_form.html.haml
@@ -13,6 +13,7 @@
13
= f.label :custom_name, Estimate.human_attribute_name(:user)
14
= f.input_field :custom_name,
15
class: "js--user-autocomplete",
16
+ value: (@estimate.user_display_name),
17
data: { search_url: search_facility_estimates_path, user_input_id: "estimate_user_id" }
18
= f.hidden_field :user_id
19
spec/system/admin/editing_an_estimate_spec.rb
@@ -85,6 +85,9 @@
85
click_link "Edit"
86
expect(page).to have_content "Edit Estimate"
87
88
+ user_input = find_field("User")
89
+ expect(user_input.value).to eq user.full_name
90
+
91
fill_in "User", with: "Custom Name"
92
93
click_button "Update"
0 commit comments