Fix tests

This commit is contained in:
Andrew Dryga
2024-04-03 11:01:05 -06:00
parent 4f012fe8f9
commit e8dc190879
2 changed files with 5 additions and 3 deletions

View File

@@ -985,7 +985,8 @@ defmodule Domain.ResourcesTest do
assert {:ok, resource} = create_resource(attrs, subject)
assert resource.address == attrs.address
assert resource.address_description == attrs.address_description
# TODO: uncomment once we show address_description
# assert resource.address_description == attrs.address_description
assert resource.name == attrs.address
assert resource.account_id == account.id

View File

@@ -185,8 +185,9 @@ defmodule Web.Live.Resources.NewTest do
|> render_submit()
|> form_validation_errors() == %{
"resource[name]" => ["should be at most 255 character(s)"],
"connections" => ["can't be blank"],
"resource[address_description]" => ["can't be blank"]
"connections" => ["can't be blank"]
# TODO: uncomment when the address_description field is shown
# "resource[address_description]" => ["can't be blank"]
}
end