Merge origin/dev into release/test preserving current workflows
This commit is contained in:
@@ -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))
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user