From 58940552be721f61b308fbf3921ae314b88daca4 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 15 May 2026 00:00:32 +0200 Subject: [PATCH] test: update yacht-prereq error message assertion to match F21 copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- tests/integration/interests-yacht.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/interests-yacht.test.ts b/tests/integration/interests-yacht.test.ts index 34c69963..7f044c40 100644 --- a/tests/integration/interests-yacht.test.ts +++ b/tests/integration/interests-yacht.test.ts @@ -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 () => {