This commit is contained in:
2026-08-15 10:35:58 +08:00
parent 88124ce5b6
commit ebbb4bc459
2 changed files with 29 additions and 15 deletions
@@ -29,8 +29,11 @@ describe('OceanBookingDetailView interaction contract', () => {
expect(source).not.toContain("customerId: [{ required: true")
expect(source).toContain('placeholder="请选择船公司"')
expect(source).toContain('placeholder="请选择订舱代理"')
expect(source).toContain("selectPartner('shippingCompany'")
expect(source).toContain("selectPartner('bookingAgent'")
expect(source).toContain('listSuppliers({ page: 1, size: 200, category: \'BOOKING\', status: \'ACTIVE\' })')
expect(source).toContain('selectShippingCompany')
expect(source).toContain('selectBookingAgent')
expect(source).toContain('bookingAgentLabel')
expect(source).toContain('暂无启用的订舱供应商')
expect(source).not.toContain('label="客户 ID"')
expect(source).not.toContain('label="船公司 ID"')
expect(source).not.toContain('label="订舱代理 ID"')
@@ -49,6 +52,7 @@ describe('OceanBookingDetailView interaction contract', () => {
expect(source).toContain("form.data.shippingCompanyName || '船公司名称缺失'")
expect(source).toContain("form.data.bookingAgentName || '订舱代理名称缺失'")
expect(source).toContain("from '@/modules/master-data'")
expect(source).toContain("from '@/modules/suppliers/api/platformSuppliers'")
})
it('renders the translated status once in the detail heading', () => {