feat(phase4): automate admin integration acceptance
This commit is contained in:
@@ -55,6 +55,19 @@ describe('overseas master data real contract pages', () => {
|
||||
expect(view).toContain('access.can(permission.')
|
||||
expect(view).toContain('ElMessage.success')
|
||||
}
|
||||
expect(source('OverseasQuotesView')).toContain('导出CSV')
|
||||
expect(source('VehiclesView')).toContain('导出CSV')
|
||||
expect(source('ExchangeRatesView')).toContain("'monthly-exchange-rates.csv'")
|
||||
for (const name of ['OverseasQuotesView', 'ExchangeRatesView', 'VehiclesView']) {
|
||||
expect(source(name)).not.toMatch(/deleteQuote|deleteExchangeRate|deleteVehicle/)
|
||||
}
|
||||
expect(source('OverseasQuotesView')).toContain('changeQuoteStatus(row.id,next,row.recordVersion)')
|
||||
expect(source('ExchangeRatesView')).toContain('changeExchangeRateStatus(row.month, next, row.recordVersion, null)')
|
||||
expect(source('VehiclesView')).toContain('changeVehicleStatus(row.id,statusTarget.value,row.recordVersion)')
|
||||
for (const name of ['OverseasQuotesView', 'ExchangeRatesView', 'VehiclesView']) {
|
||||
expect(source(name)).toContain("masterDataErrorMessage(")
|
||||
expect(source(name)).toContain('saveCsv(await export')
|
||||
}
|
||||
})
|
||||
|
||||
it('uses an independent API-backed vehicle detail page without inventing fulfillment history', () => {
|
||||
@@ -81,5 +94,13 @@ describe('overseas master data real contract pages', () => {
|
||||
expect(gaps).toContain('/overseas-quotes/warehouse-options')
|
||||
expect(gaps).toContain('浏览器不调用国内')
|
||||
expect(gaps).toContain('没有删除端点')
|
||||
expect(gaps).toContain('JSON 错误 Blob')
|
||||
expect(gaps).not.toContain('尚无已确认')
|
||||
expect(matrixSource()).not.toContain('写入口禁用')
|
||||
expect(matrixSource()).not.toContain('等待查询接口')
|
||||
})
|
||||
})
|
||||
|
||||
function matrixSource() {
|
||||
return readFileSync(resolve(process.cwd(), 'src/modules/overseas-master-data/PROTOTYPE_MATRIX.md'), 'utf8')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user