Merge origin/dev into release/test preserving current workflows

This commit is contained in:
2026-09-14 11:05:47 +08:00
18 changed files with 1362 additions and 211 deletions
@@ -8,7 +8,7 @@ const component = (name: string) => readFileSync(resolve(process.cwd(), 'src/mod
describe('overseas warehouse 1920px layout acceptance', () => {
it('keeps action columns first and wide enough for every visible action', () => {
const widths: Record<string, number> = {
'LastMileOrdersView.vue': 178,
'LastMileOrdersView.vue': 230,
'InboundOrdersView.vue': 300,
'DispatchesView.vue': 380,
'OutboundsView.vue': 180,
@@ -20,7 +20,7 @@ describe('overseas warehouse 1920px layout acceptance', () => {
for (const [name, width] of Object.entries(widths)) {
const source = page(name)
const columns = source.slice(source.indexOf('const columns'), source.indexOf('async function', source.indexOf('const columns')))
expect(columns).toContain(`{ key: 'actions', label: '操作', width: ${width}, fixed: 'left'`)
expect(columns).toMatch(new RegExp(`key: 'actions',[\\s\\S]*?label: '操作',[\\s\\S]*?width: ${width},[\\s\\S]*?fixed: 'left'`))
expect(columns.indexOf("key: 'actions'")).toBeLessThan(columns.indexOf("label:", columns.indexOf("key: 'actions'") + 20))
}
})