This commit is contained in:
2026-08-07 14:47:11 +08:00
parent e7cc0cf18b
commit 7ac173fac4
21 changed files with 1714 additions and 791 deletions
@@ -112,11 +112,11 @@ describe('InboundFeePanel', () => {
it('keeps the prototype-aligned detail order and renders long values with pending timestamps', async () => {
const longRuleCode = `RULE-${'LONG-'.repeat(20)}`
const longCarrierName = `船司${'超长名称'.repeat(20)}`
const longChannelCode = `CHANNEL-${'LONG-'.repeat(20)}`
vi.mocked(getLatestInboundFee).mockResolvedValue({
...snapshot,
ruleCode: longRuleCode,
carrierName: longCarrierName,
channelCode: longChannelCode,
confirmedAt: null,
sentAt: null,
})
@@ -138,10 +138,10 @@ describe('InboundFeePanel', () => {
])
expect(wrapper.findAll('.fee-detail-grid h4').map((node) => node.text())).toEqual([
'客户计费规则',
'船司 FBA 价格',
'渠道价格',
])
expect(content).toContain(longRuleCode)
expect(content).toContain(longCarrierName)
expect(content).toContain(longChannelCode)
const pendingTimelineItems = wrapper.findAll('.fee-timeline li.pending')
expect(pendingTimelineItems).toHaveLength(2)
expect(pendingTimelineItems.map((item) => item.find('strong').text())).toEqual(['—', '—'])