feat: Send node execution finished and node execution data in separate events (no-changelog) (#18875)

Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
Alex Grozav
2025-09-12 13:56:13 +01:00
committed by GitHub
parent 26f27efd75
commit 10fa3a9b01
28 changed files with 325 additions and 159 deletions

View File

@@ -76,8 +76,9 @@ export function clickOpenNdvAtRow(rowIndex: number) {
}
export function clickTriggerPartialExecutionAtRow(rowIndex: number) {
getLogEntries().eq(rowIndex).scrollIntoView();
getLogEntries().eq(rowIndex).realHover();
getLogEntries().eq(rowIndex).find('[aria-label="Execute step"]').click();
getLogEntries().eq(rowIndex).find('[aria-label="Execute step"]').click({ force: true });
}
export function setInputDisplayMode(mode: 'table' | 'ai' | 'json' | 'schema') {

View File

@@ -117,10 +117,19 @@ export function runMockWorkflowExecution({
nodeName,
data: pick(nodeRunData, ['startTime', 'executionIndex', 'source', 'hints']),
});
const { data: _, ...taskData } = nodeRunData;
const itemCount = nodeRunData.data?.main?.[0]?.length ?? 0;
cy.push('nodeExecuteAfter', {
executionId,
nodeName,
data: taskData,
itemCount,
});
cy.push('nodeExecuteAfterData', {
executionId,
nodeName,
data: nodeRunData,
itemCount,
});
});