feat(phase4): automate admin integration acceptance
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user