From c7d18d426c6f80ed2cb9da2b7b727734aef42644 Mon Sep 17 00:00:00 2001 From: kate522 Date: Wed, 7 Oct 2026 08:32:16 +0000 Subject: [PATCH] =?UTF-8?q?test(admin):=20=E5=A5=91=E7=BA=A6=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E5=94=AE=E5=90=8E=E8=A1=A8=E6=A0=BC=E6=96=B0=E5=88=97?= =?UTF-8?q?=E4=B8=8E=E7=AD=96=E7=95=A5=E6=91=98=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/widget-system/financial-flow-contract.test.cjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/widget-system/financial-flow-contract.test.cjs b/tests/widget-system/financial-flow-contract.test.cjs index 9e1b625d..2a525178 100644 --- a/tests/widget-system/financial-flow-contract.test.cjs +++ b/tests/widget-system/financial-flow-contract.test.cjs @@ -140,6 +140,15 @@ test('order detail page drops tabs; after-sales becomes a standalone submenu', ( assert.ok(page.includes('render_after_sales_admin_page'), 'after-sales admin page entry') assert.ok(page.includes("PAGE_AFTER_SALES_SLUG = 'aksrt_after_sales'"), 'after-sales slug constant') assert.ok(!page.includes('after-sales'), 'old tab slug must not remain') + // 售后表格列对齐售后策略的申请表单配置项:原因 / 申请资料 / 申请说明 + assert.ok(page.includes('申请资料'), 'materials column') + assert.ok(page.includes('申请说明'), 'description column') + assert.ok(page.includes('$materials_cell'), 'materials cell rendered from apply_form') + assert.ok(page.includes('$desc_cell'), 'description cell rendered from apply_form') + // 页头展示售后策略摘要(功能开关 / 时效 / 预置原因 / 申请材料) + assert.ok(page.includes('get_after_sale_settings()'), 'policy summary reads settings') + assert.ok(page.includes('预置原因'), 'policy summary shows reasons') + assert.ok(page.includes('申请所需材料'), 'policy summary shows materials') const domain = read('src/Core/DomainModel.php') for (const status of ['pending', 'paid', 'refunded', 'closed']) assert.ok(domain.includes(`ORDER_STATUS_${status.toUpperCase()}`)) assert.match(page, /STATUS_PENDING[\s\S]*?STATUS_PROCESSING[\s\S]*?STATUS_APPROVED[\s\S]*?STATUS_REJECTED[\s\S]*?STATUS_CANCELLED[\s\S]*?STATUS_COMPLETED/)