feat(short-drama-agent-front): 接入有限图片授权与候选修订
This commit is contained in:
1 parent
f6edc4eb70
commit
b15a6011ce
37 files changed
+3569
-76
No files matched your search
@@ -89,7 +89,11 @@ describe('动作修订激活证据', () => {
|
||||
vi.stubGlobal('fetch', fetcher)
|
||||
await motionApi.previewRevision('s/1', revision.motionPlan)
|
||||
await motionApi.saveRevision('s/1', { motionPlan: revision.motionPlan, parentRevisionId: null, reason: null })
|
||||
await motionApi.validateRevision('s/1', 'r/1', { primaryKeyframeId: primary.id, expectedRevisionId: null })
|
||||
await motionApi.validateRevision('s/1', 'r/1', {
|
||||
primaryKeyframeId: primary.id,
|
||||
expectedRevisionId: null,
|
||||
expectedPlanFingerprint: 'a'.repeat(64)
|
||||
})
|
||||
await motionApi.activateRevision('s/1', 'r/1', { expectedRevisionId: null, validationExecutionId: 'e1' })
|
||||
const calls = fetcher.mock.calls
|
||||
expect(calls.map(([url]) => url)).toEqual([
|
||||
@@ -105,7 +109,8 @@ describe('动作修订激活证据', () => {
|
||||
})
|
||||
expect(JSON.parse(String(calls[2]?.[1]?.body))).toEqual({
|
||||
primaryKeyframeId: primary.id,
|
||||
expectedRevisionId: null
|
||||
expectedRevisionId: null,
|
||||
expectedPlanFingerprint: 'a'.repeat(64)
|
||||
})
|
||||
expect(JSON.parse(String(calls[3]?.[1]?.body))).toEqual({
|
||||
expectedRevisionId: null,
|
||||
|
||||
Reference in new issue
Block a user