feat: expose graph still workflow in editor
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { describe, expect, test } from 'vitest'
|
||||
|
||||
import { createPresetWorkflowConfig } from '../../api/workflows'
|
||||
|
||||
describe('workflow preset config builders', () => {
|
||||
test('builds a non-legacy still graph preset', () => {
|
||||
const config = createPresetWorkflowConfig('still_graph', {
|
||||
render_engine: 'cycles',
|
||||
samples: 128,
|
||||
resolution: [1600, 900],
|
||||
})
|
||||
|
||||
expect(config.ui?.preset).toBe('still_graph')
|
||||
expect(config.ui?.execution_mode).toBe('graph')
|
||||
expect(config.nodes.map(node => node.step)).toEqual([
|
||||
'order_line_setup',
|
||||
'auto_populate_materials',
|
||||
'resolve_template',
|
||||
'material_map_resolve',
|
||||
'blender_still',
|
||||
'output_save',
|
||||
'notify',
|
||||
])
|
||||
expect(config.nodes.find(node => node.step === 'blender_still')?.params).toMatchObject({
|
||||
render_engine: 'cycles',
|
||||
samples: 128,
|
||||
width: 1600,
|
||||
height: 900,
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user