feat: adapt workflow for ppt & minimap (#7464)

This commit is contained in:
darkskygit
2024-07-10 10:13:17 +00:00
parent 22187f964a
commit 0739e10683
10 changed files with 227 additions and 27 deletions

View File

@@ -792,7 +792,9 @@ test('should be able to run workflow', async t => {
}
t.assert(result, 'generate text to text stream');
const callCount = graph!.graph.length;
// presentation workflow has condition node, it will always false
// so the latest 2 nodes will not be executed
const callCount = graph!.graph.length - 2;
t.is(
executor.callCount,
callCount,
@@ -808,7 +810,7 @@ test('should be able to run workflow', async t => {
t.is(
params.args[1].content,
'apple company',
'generate text to text stream',
'graph params should correct'
);
t.is(