fix(admin): expose canonical booking link from container detail
This commit is contained in:
@@ -51,4 +51,12 @@ describe('ContainerDetailView customs integration', () => {
|
||||
expect(overviewSource).not.toContain(retired)
|
||||
}
|
||||
})
|
||||
|
||||
it('offers the released-booking link workflow only for an eligible unlinked simulation container', () => {
|
||||
expect(source).toContain("detail.value?.sourceType === 'SIMULATION'")
|
||||
expect(source).toContain("!detail.value.oceanBookingId")
|
||||
expect(source).toContain("['WAIT_LOADING', 'EDITING'].includes(detail.value.planStatus)")
|
||||
expect(source).toContain('关联已放舱订舱')
|
||||
expect(source).toContain("query: { linkContainerId: detail.value.id }")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user