From 01d73b777ab213c35f5c01c83ae6877fc0cf48cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Otgaar?= Date: Mon, 5 Jan 2026 10:37:05 +0100 Subject: [PATCH] chore: fix one test --- .../visProgPage/visualProgrammingUI/nodes/BeliefNode.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pages/visProgPage/visualProgrammingUI/nodes/BeliefNode.test.tsx b/test/pages/visProgPage/visualProgrammingUI/nodes/BeliefNode.test.tsx index 07a69ef..98eaccc 100644 --- a/test/pages/visProgPage/visualProgrammingUI/nodes/BeliefNode.test.tsx +++ b/test/pages/visProgPage/visualProgrammingUI/nodes/BeliefNode.test.tsx @@ -467,7 +467,7 @@ describe('BasicBeliefNode', () => { }); }); - it('should preserve value when switching from text type to emotion type', async () => { + it('should automatically choose the first option when switching to emotion type, and carry on to the text values', async () => { const mockNode: Node = { id: 'belief-1', type: 'basic_belief', @@ -512,7 +512,7 @@ describe('BasicBeliefNode', () => { expect(updatedNode?.data.belief.type).toBe('emotion'); // The component doesn't reset the value when changing types // So it keeps the old value even though it doesn't make sense for emotion type - expect(updatedNode?.data.belief.value).toBe('some text'); + expect(updatedNode?.data.belief.value).toBe('Happy'); }); }); });