test: update yacht-prereq error message assertion to match F21 copy
All checks were successful
Build & Push Docker Images / lint (push) Successful in 2m12s
Build & Push Docker Images / build-and-push (push) Successful in 4m35s

The integration test was pinned to the legacy "yachtId is required before
leaving stage=enquiry" developer-language string. F21 reworded it to
"A yacht must be linked before leaving the Enquiry stage." for the toast
surface — bring the test regex along.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-15 00:00:32 +02:00
parent 202e0b1bc5
commit 58940552be

View File

@@ -157,7 +157,7 @@ describe('interests.service — yacht ownership validation', () => {
{ pipelineStage: 'qualified' },
makeAuditMeta({ portId: port.id }),
),
).rejects.toThrow(/yachtId is required before leaving stage=enquiry/);
).rejects.toThrow(/yacht must be linked before leaving the Enquiry stage/i);
});
it('changeInterestStage succeeds when yachtId is set', async () => {