test(contacts): isolate duplicate-name assertion from demo seed #331
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/PMS-464-company-dup-test-demo-seed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The company_rejects_duplicate_name integration test asserted that a
substring search for "acme" returned exactly ["Acme"]. First-visit demo
seeding (PMS-157) inserts a company named "Acme Corporation (Demo)" into
the test tenant, which the case-insensitive substring search also matches,
so the result became ["Acme Corporation (Demo)", "Acme"] and the strict
equality assertion failed. Assert against the inserted row only by
filtering the search results to the exact "Acme" name and requiring a
count of one, which still proves no duplicate row was inserted while
being robust to unrelated seeded data.
#PMS-464
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com