diff --git a/.changeset/35431-order-to-cash-title.md b/.changeset/35431-order-to-cash-title.md new file mode 100644 index 00000000000..0c877b511b7 --- /dev/null +++ b/.changeset/35431-order-to-cash-title.md @@ -0,0 +1,8 @@ +--- +'@objectstack/scenarios': patch +--- + +fix(scenarios): the order_to_cash card's English title is 126 characters, under the 128-character displayName cap + +Clause-②: no +Metadata-protocol: none diff --git a/docs/qa/scenarios/order_to_cash.json b/docs/qa/scenarios/order_to_cash.json index d14f8a4605f..595423efb2c 100644 --- a/docs/qa/scenarios/order_to_cash.json +++ b/docs/qa/scenarios/order_to_cash.json @@ -4,7 +4,7 @@ "code": "order", "tier": "starter", "origin": "generic", - "title": { "zh": "订单到收款:客户、跟进活动、销售订单及明细、折扣审批、发票、收款和应收账龄", "en": "Order to cash: accounts, an activity stream, sales orders with lines, a discount approval, invoices, payments and receivables aging" }, + "title": { "zh": "订单到收款:客户、跟进活动、销售订单及明细、折扣审批、发票、收款和应收账龄", "en": "Order to cash: accounts, activity stream, sales orders with lines, discount approval, invoices, payments and receivables aging" }, "provenance": "Mid-tier scenario 订单到收款 (order to cash) of the open library, written for this card from general business knowledge alone: generic account names, cities, products and amounts, no customer-derived content. The seed follows the arithmetic rule in `$comment`, so each truth can be worked out by hand.", "prompt": { "short": { diff --git a/packages/qa/scenarios/test/library.test.ts b/packages/qa/scenarios/test/library.test.ts index e978abdb468..c4742859b3c 100644 --- a/packages/qa/scenarios/test/library.test.ts +++ b/packages/qa/scenarios/test/library.test.ts @@ -146,6 +146,8 @@ describe('the open scenario library (docs/qa/scenarios)', () => { // A Chinese title is Chinese: at least one CJK ideograph, not the English one copied over. expect(card.title.zh, card.id).toMatch(/[\u4e00-\u9fff]/); expect(card.title.zh, card.id).not.toBe(card.title.en); + // The exporter writes title.en as the manifest displayName, which package.zod caps at 128. + expect(card.title.en.length, card.id).toBeLessThanOrEqual(128); } });