优化
This commit is contained in:
@@ -142,3 +142,15 @@ test('matches the updated six-action icon and motion treatment', () => {
|
||||
assert.match(dashboardView, /prefers-reduced-motion: reduce/)
|
||||
assert.match(dashboardView, /\.client-dashboard a:focus-visible/)
|
||||
})
|
||||
|
||||
test('opens all six dashboard businesses through their dedicated create pages', () => {
|
||||
for (const route of [
|
||||
'/orders/first-leg/create',
|
||||
'/overseas-warehouse/return-relabel/create',
|
||||
'/cross-border/domestic-trucking/create',
|
||||
'/cross-border/pallet-shipping/create',
|
||||
'/cross-border/procurement/create',
|
||||
'/overseas-warehouse/labeling/create',
|
||||
]) assert.match(dashboardView, new RegExp(`route: '${route.replaceAll('/', '\\/')}'`))
|
||||
assert.match(dashboardView, /title: '退货换标'[\s\S]*?permission: 'merchant:overseas-warehouse:return-order:create'/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user