From e8dc190879df0cca2a5f3e780895806d2a99a05b Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Wed, 3 Apr 2024 11:01:05 -0600 Subject: [PATCH] Fix tests --- elixir/apps/domain/test/domain/resources_test.exs | 3 ++- elixir/apps/web/test/web/live/resources/new_test.exs | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/elixir/apps/domain/test/domain/resources_test.exs b/elixir/apps/domain/test/domain/resources_test.exs index 87f189ba9..36393b385 100644 --- a/elixir/apps/domain/test/domain/resources_test.exs +++ b/elixir/apps/domain/test/domain/resources_test.exs @@ -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 diff --git a/elixir/apps/web/test/web/live/resources/new_test.exs b/elixir/apps/web/test/web/live/resources/new_test.exs index b980445f6..1503a9f61 100644 --- a/elixir/apps/web/test/web/live/resources/new_test.exs +++ b/elixir/apps/web/test/web/live/resources/new_test.exs @@ -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