This commit is contained in:
2026-09-21 11:17:13 +08:00
parent bdb42f1256
commit befd22af96
5 changed files with 67 additions and 13 deletions
+12
View File
@@ -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'/)
})