This commit is contained in:
2026-09-02 15:15:47 +08:00
parent 637b202559
commit 602674573c
13 changed files with 72 additions and 32 deletions
@@ -34,6 +34,15 @@ describe('overseas warehouse 1920px layout acceptance', () => {
}
})
it('provides semantic placeholders for editable form controls', () => {
for (const name of ['LastMileOrdersView.vue', 'InboundOrdersView.vue', 'DispatchesView.vue', 'OutboundsView.vue', 'DeliveryOrdersView.vue', 'RelabelOrdersView.vue', 'PalletsView.vue', 'InventoryView.vue']) {
const editableControls = [...page(name).matchAll(/<el-(?:input-number|date-picker|input|select)[ >][^>]*>/g)]
.map(([tag]) => tag)
.filter((tag) => !/\s(?:readonly|disabled)(?:\s|\/?>)/.test(tag))
expect(editableControls.every((tag) => tag.includes('placeholder=')), `${name} has an editable control without placeholder`).toBe(true)
}
})
it('uses four-field desktop density and full-width form controls', () => {
const sharedDetail = component('OverseasReadOnlyDetail.vue')
expect(sharedDetail).toContain('grid-template-columns: repeat(2, minmax(0, 1fr))')