From dac6b7fae9c5600fb7d7d7e19f0a5a98a35cb028 Mon Sep 17 00:00:00 2001 From: jesse-ux Date: Tue, 20 Oct 2026 14:24:20 +0800 Subject: [PATCH] test(db): expect the published synastry.full prices in the business schema The local PostgreSQL check reads the whole feature_pricing table, so the 19-credit rows from the new migration have to be in the expected list. Co-authored-by: Cursor --- frontend/tests/database-local-business.test.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/tests/database-local-business.test.ts b/frontend/tests/database-local-business.test.ts index 96fbf61d..a028c9fd 100644 --- a/frontend/tests/database-local-business.test.ts +++ b/frontend/tests/database-local-business.test.ts @@ -185,9 +185,19 @@ test("local PostgreSQL applies the reviewed business schema and serves authentic fixture.psqlAs( "admin_runtime", "admin-runtime-test-password", - "select feature_key || ':' || model_tier || ':' || credit_cost || ':' || status from public.feature_pricing", + `select feature_key || ':' || model_tier || ':' || credit_cost || ':' || status + from public.feature_pricing + order by feature_key, model_tier`, ), - "rectification:standard:3:draft", + // 原值: "rectification:standard:3:draft" + // 新值: 上面那行,再加上 synastry.full 的 standard / premium / internal 各 19 点、published + // 原因: 20261020010000 发布了合盘定价。这条查询读的是整张表,不是只读刚插入的校正草稿。 + [ + "rectification:standard:3:draft", + "synastry.full:internal:19:published", + "synastry.full:premium:19:published", + "synastry.full:standard:19:published", + ].join("\n"), ); // Public table allowlist. Last change (BUG-548):