This commit is contained in:
2026-10-20 14:25:01 +08:00
parent 5679b156ca
commit 03b1e7163e
23 changed files with 425 additions and 54 deletions
+9
View File
@@ -178,6 +178,15 @@ const cssRoot = (css: string) => {
}
describe('approved Admin density ownership', () => {
it('keeps declaration order fields on the continuous cell-editor baseline', () => {
const source = read('modules/unified-orders/components/OrderDeclarationEditorDialog.vue')
const orderFields = source.slice(source.indexOf('<el-form label-position="left"'), source.indexOf('</el-form>') + '</el-form>'.length)
expect(orderFields).toContain('class="order-fields density-form"')
expect(orderFields).toContain('density-table density-table--editable')
expect(orderFields).not.toMatch(/<el-(?:row|col)\b/)
expect(orderFields).toContain('<span aria-label="渠道编码">')
expect(orderFields).not.toContain('<el-input :model-value="form.channelCode"')
})
it('shares the measurement palette through explicit dialog sections without changing other dialog bodies', () => {
const tokenValues: Record<string, string> = {}
cssRoot(tokens).walkDecls(decl => { tokenValues[decl.prop] = decl.value })