fix(admin): align test contracts and sailing integrations
This commit is contained in:
@@ -108,6 +108,7 @@ const domesticPages = [
|
||||
{ title: '库位管理', path: '/master-data/locations', file: 'warehouse-resources/locations/pages/LocationsView.vue' },
|
||||
{ title: '托盘管理', path: '/master-data/pallets', file: 'warehouse-resources/pallets/pages/PalletsView.vue' },
|
||||
{ title: '整柜业务', path: '/domestic-containers', file: 'domestic-containers/pages/DomesticContainersView.vue' },
|
||||
{ title: '船期日历', path: '/sailing-calendar', file: 'sailing-calendar/pages/SailingCalendarView.vue' },
|
||||
]
|
||||
const customerPages = [
|
||||
{ title: '客户列表', path: '/customers', file: 'customers/pages/CustomersView.vue' },
|
||||
@@ -247,11 +248,11 @@ describe('approved Admin density ownership', () => {
|
||||
expect(read('modules/overseas-warehouse/pages/LastMileOrderDetailView.vue')).toContain('density-detail-overview')
|
||||
})
|
||||
|
||||
it('covers all ten overseas warehouse menus, details and both return inventory modes', () => {
|
||||
it('covers all eleven overseas warehouse menus, details and both return inventory modes', () => {
|
||||
const navigation = read('core/navigation/adminNavigation.ts')
|
||||
const section = navigation.slice(navigation.indexOf("key: 'overseas-inventory'"), navigation.indexOf("key: 'customer-service'"))
|
||||
for (const path of ['last-mile-orders', 'inbound-orders', 'dispatches', 'outbounds', 'delivery-orders', 'relabel-orders', 'pallets', 'inventory', 'return-inventory', 'return-cartons']) expect(section).toContain("path: '/overseas-warehouse/" + path + "'")
|
||||
expect([...section.matchAll(/path: '/g)]).toHaveLength(10)
|
||||
for (const path of ['last-mile-orders', 'inbound-orders', 'locations', 'dispatches', 'outbounds', 'delivery-orders', 'relabel-orders', 'pallets', 'inventory', 'return-inventory', 'return-cartons']) expect(section).toContain("path: '/overseas-warehouse/" + path + "'")
|
||||
expect([...section.matchAll(/path: '/g)]).toHaveLength(11)
|
||||
const routes = read('modules/overseas-warehouse/routes.ts')
|
||||
for (const mode of ['inventory', 'cartons']) expect(routes).toContain("mode: '" + mode + "'")
|
||||
for (const file of overseasConsumers) {
|
||||
@@ -376,7 +377,7 @@ describe('approved Admin density ownership', () => {
|
||||
}
|
||||
})
|
||||
|
||||
it('covers all seven domestic menu entries and loads density CSS on direct entry', () => {
|
||||
it('covers all eight domestic menu entries and loads density CSS on direct entry', () => {
|
||||
const navigation = read('core/navigation/adminNavigation.ts')
|
||||
const domestic = navigation.slice(navigation.indexOf("key: 'domestic-warehouse'"), navigation.indexOf("key: 'overseas-delivery'"))
|
||||
expect([...domestic.matchAll(/path: '/g)]).toHaveLength(domesticPages.length)
|
||||
|
||||
Reference in New Issue
Block a user