diff --git a/spec/views/organizations/edit.html.erb_spec.rb b/spec/views/organizations/edit.html.erb_spec.rb
index 1b55b5b944..c706dd03a3 100644
--- a/spec/views/organizations/edit.html.erb_spec.rb
+++ b/spec/views/organizations/edit.html.erb_spec.rb
@@ -73,4 +73,15 @@ def org_with_status(name)
assert_select "p.text-red-600", text: "Does not match affiliations status"
end
end
+
+ describe "new affiliation defaults" do
+ it "defaults the start date to the first of the current month and leaves primary contact unchecked" do
+ organization.affiliations.build
+ render
+ assert_select "input[name*='start_date'][value=?]",
+ Date.current.beginning_of_month.strftime("%Y-%m-%d")
+ assert_select "input[type=checkbox][name*='primary_contact']"
+ assert_select "input[type=checkbox][name*='primary_contact'][checked]", false
+ end
+ end
end