feat(phase4): automate admin integration acceptance

This commit is contained in:
2026-08-24 15:41:36 +08:00
parent 91db777cb8
commit 964480a617
34 changed files with 1231 additions and 202 deletions
@@ -3,6 +3,7 @@ import { resolve } from 'node:path'
import { describe, expect, it } from 'vitest'
const source = readFileSync(resolve(process.cwd(), 'src/modules/port-schedules/components/CarrierScheduleQueryPanel.vue'), 'utf8')
const apiSource = readFileSync(resolve(process.cwd(), 'src/modules/port-schedules/api/platformCarrierScheduleQueries.ts'), 'utf8')
describe('CarrierScheduleQueryPanel', () => {
it('uses the existing relation filters and never creates or executes polling tasks', () => {
@@ -60,4 +61,14 @@ describe('CarrierScheduleQueryPanel', () => {
expect(source).toContain('item.providerStatus')
expect(source).not.toContain('/' + 'manual-results')
})
it('keeps retired progress fields and forbidden write endpoints out of the panel and adapter', () => {
const productionSource = `${source}\n${apiSource}`
expect(productionSource).not.toContain(['latest', 'StandardNode'].join(''))
expect(productionSource).not.toContain(['latest', 'NodeObservedAt'].join(''))
expect(productionSource).not.toContain('/' + 'attempts')
expect(productionSource).not.toContain('/' + 'manual-results')
expect(productionSource).not.toContain('/' + 'scheduler')
expect(apiSource).toContain('/manual-nodes')
})
})