fix(editor): Testing flaky resource mapper feature in e2e tests (#7165)

This commit is contained in:
Milorad FIlipović
2023-09-14 10:54:25 +02:00
committed by GitHub
parent 0c6169ee22
commit aaf87c3edd
7 changed files with 86 additions and 58 deletions

View File

@@ -202,6 +202,14 @@ export class E2eTest implements INodeType {
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const operation = this.getNodeParameter('operation', 0);
// For resource mapper testing, return actual node values
if (operation === 'resourceMapper') {
const rmValue = this.getNodeParameter('resourceMapper.value', 0);
if (rmValue) {
return [[{ json: rmValue as INodeExecutionData }]];
}
}
return [returnData];
}
}