mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Fix tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user