Closed Corkle closed 6 months ago
I also missed the configuration change needed to enable the server for tests. The flow of the instructions made it seem related to configuring sandbox options.
PR to clarify the docs would be appreciated!
You got it! #772
Elixir and Erlang/OTP versions
Elixir 1.16.2 Erlang/OTP 26
Operating system
Debian 12
Browser
Chrome
Driver
ChromeDriver
Correct Configuration
Current behavior
I had some difficulty parsing the setup docs to understand what configuration is required for a Phoenix application without Ecto. Below are the sections that did not seem required when first reading the docs:
Without this statement in my test helpers file, I would get a process not alive error. I deduce that this is a required configuration step for all applications regardless of using Ecto.
The error message thrown when running a test without this configuration in test helpers was very helpful in pointing out what was missing.
Expected behavior
If these two configuration steps are required to test Phoenix applications even without using Ecto, the documentation could be improved to make this more obvious. The fact that they are at the very end of their respective sections followed by conditional cases makes it easy to skim past them or misinterpret their importance.
I think removing the adverbs in these statements and/or moving the statements above the conditionals for Ecto could make this more clear that they need to be added to test_helpers.exs.
Test Code & HTML
N/A
Demonstration Project
No response