Merge branch 'main' into dev_match

This commit is contained in:
2026-11-07 10:41:19 +08:00
15 changed files with 265 additions and 49 deletions
@@ -21,3 +21,9 @@ test('最近核销任务使用服务端分页', () => {
assert.ok(panel.includes('setPageSize(nextPageSize)'))
assert.ok(!panel.includes('pagination={false}\n scroll={{ x: 1200 }}'))
})
test('自动核销策略提供未命中履约渠道的平台兜底配置', () => {
assert.ok(panel.includes("unmatched: '未命中渠道兜底'"))
assert.ok(panel.includes("label: '未命中渠道后'"))
assert.ok(panel.includes("value: 'unmatched'"))
})
@@ -0,0 +1,18 @@
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'
import test from 'node:test'
test('接单工单筛选按内容分配宽度,店铺下拉不能吞掉查询区', async () => {
const [panel, css] = await Promise.all([
readFile(new URL('../src/pages/admin/panels/WorkOrdersPanel.tsx', import.meta.url), 'utf8'),
readFile(new URL('../src/styles/worker.css', import.meta.url), 'utf8'),
])
assert.ok(panel.includes('className="worker-orders-filter-actions"'))
assert.ok(css.includes('flex-wrap: wrap'))
assert.ok(css.includes('.worker-orders-filter-select--wide'))
assert.ok(css.includes('width: 220px'))
assert.ok(css.includes('max-width: 240px'))
assert.ok(css.includes('.worker-orders-filter-actions'))
assert.ok(!css.includes('overflow-x: auto;\n scrollbar-width: thin;'))
})