Merge branch 'release/test' of http://8.163.30.128:10082/html/admin-web into release/test
This commit is contained in:
@@ -27,6 +27,7 @@ const overseasConsumers = [
|
||||
'overseas-warehouse/pages/InboundOrderDetailView.vue',
|
||||
'overseas-warehouse/pages/DispatchesView.vue',
|
||||
'overseas-warehouse/pages/DispatchDetailView.vue',
|
||||
'overseas-warehouse/components/TransportExecutionPanel.vue',
|
||||
'overseas-warehouse/pages/OutboundsView.vue',
|
||||
'overseas-warehouse/pages/OutboundDetailView.vue',
|
||||
'overseas-warehouse/pages/DeliveryOrdersView.vue',
|
||||
@@ -854,7 +855,7 @@ describe('approved Admin density ownership', () => {
|
||||
}
|
||||
})
|
||||
|
||||
it('fits the five dispatch vehicle fields in one desktop row and keeps actions below the tabs', () => {
|
||||
it('fits the five dispatch vehicle fields in one desktop row with read-only detail tabs', () => {
|
||||
const source = read('modules/overseas-warehouse/pages/DispatchDetailView.vue')
|
||||
const css = parse(source).descriptor.styles.map(style => style.content).join('\n')
|
||||
const declarations = (source: string, selector: string) => {
|
||||
@@ -866,7 +867,7 @@ describe('approved Admin density ownership', () => {
|
||||
}
|
||||
expect(declarations(css, '.dispatch-detail .vehicle-fields')['grid-template-columns']).toBe('minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 0.8fr)')
|
||||
expect(declarations(css, '.dispatch-detail .vehicle-fields > div')['grid-template-columns']).toBe('max-content minmax(0, 1fr)')
|
||||
expect(declarations(css, '.dispatch-actions')['justify-content']).toBe('flex-end')
|
||||
expect(css).not.toContain('.dispatch-actions')
|
||||
expect(declarations(shared, '.admin-density .density-contained-tabs > .el-tabs__content').padding).toBe('var(--admin-space-5)')
|
||||
expect(declarations(shared, '.admin-density .density-contained-tabs.density-contained-tabs--flush > .el-tabs__content').padding).toBe('0')
|
||||
expect(elementsOf(source, 'el-tabs').every(node => classesOf(node).includes('density-contained-tabs--flush'))).toBe(true)
|
||||
@@ -1012,7 +1013,7 @@ describe('approved Admin density ownership', () => {
|
||||
for (const file of ['customers/CustomerOverseasStorageFeePanel.vue', 'customers/pages/OverseasStorageFeesView.vue', 'customers/components/CustomerBillingRulesPanel.vue']) {
|
||||
const source = read(`modules/${file}`)
|
||||
expect(source, file).toContain('density-table density-table--editable')
|
||||
expect(source, file).toContain('class="density-dialog-section" data-tone="work"')
|
||||
expect(source, file).toContain(file === 'customers/pages/OverseasStorageFeesView.vue' ? 'class="density-dialog-section"' : 'class="density-dialog-section" data-tone="work"')
|
||||
expect(source, file).toContain('fullscreenable')
|
||||
expect(source, file).not.toContain('class="dialog-actions"')
|
||||
}
|
||||
@@ -1378,7 +1379,7 @@ describe('approved Admin density ownership', () => {
|
||||
expect(workflow).toContain('<DispatchResourceFields continuous')
|
||||
expect(workflow).toContain('density-table density-table--editable workflow-editor-table')
|
||||
expect(workflow).toContain('label-position="left" label-width="130px"')
|
||||
expect(workflow).toContain(':confirm-loading="busy || uploadingEvidence"')
|
||||
expect(workflow).toContain(':confirm-loading="submitting || busy || uploadingEvidence"')
|
||||
expect(workflow).not.toContain('aria-label="候选货物分页"')
|
||||
expect(cargo).toContain('class="existing-cargo density-dialog-sections"')
|
||||
expect(cargo).toContain('<SmartDispatchCargoBoard')
|
||||
|
||||
Reference in New Issue
Block a user