fix(editor): Testing flaky resource mapper feature in e2e tests (#7165)
This commit is contained in:
committed by
GitHub
parent
0c6169ee22
commit
aaf87c3edd
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,15 @@ export const resourceMapperFields: ResourceMapperFields = {
|
||||
display: true,
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
id: 'age',
|
||||
displayName: 'Age',
|
||||
defaultMatch: false,
|
||||
canBeUsedToMatch: false,
|
||||
required: false,
|
||||
display: true,
|
||||
type: 'number',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user