Ash FrameworkAF
Ash Framework6mo ago
12 replies
forest

Cinder Table and Testing

Thank you for Cinder. Very nice.

I have some basic LiveView tests and they are now breaking with Cinder. I believe it is b/c the Table makes the query and the assert is happening before the data is loaded. What is the right fix for this in tests? I can add a timeout but that feels dirty.

elixir 
    test "lists all organizations", %{conn: conn, organization: organization} do
      {:ok, index_live, html} = live(conn, ~p"/organizations")

      assert html =~ "Listing Organizations"
      assert html =~ organization.name
    end


This test fails with Cinder.
Was this page helpful?