优化
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user