feat(core): Use node IDs instead of names for data mocking during test runs (no-changelog) (#12348)

This commit is contained in:
Eugene
2025-01-07 10:00:06 +01:00
committed by GitHub
parent 1d5c9bd466
commit 04c1182a1e
9 changed files with 195 additions and 20 deletions

View File

@@ -405,13 +405,14 @@ describe('PATCH /evaluation/test-definitions/:id', () => {
const resp = await authOwnerAgent.patch(`/evaluation/test-definitions/${newTest.id}`).send({
mockedNodes: [
{
id: 'uuid-1234',
name: 'Schedule Trigger',
},
],
});
expect(resp.statusCode).toBe(200);
expect(resp.body.data.mockedNodes).toEqual([{ name: 'Schedule Trigger' }]);
expect(resp.body.data.mockedNodes).toEqual([{ id: 'uuid-1234', name: 'Schedule Trigger' }]);
});
test('should return error if pinned nodes are invalid', async () => {