fix(worker-platform): 优化接单工单筛选布局
This commit is contained in:
@@ -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;'))
|
||||
})
|
||||
Reference in New Issue
Block a user