Pim Hutting
8149d67491
Merge branch 'fix/deep-clone-data' into 'dev'
...
fix deep cloning bug where phases don't have their own children but store references
See merge request ics/sp/2025/n25b/pepperplus-ui!27
2025-12-09 14:55:46 +00:00
Pim Hutting
501f56e009
chore: solve merge conflicts with dev
...
ref: N25B-189
2025-12-09 14:21:23 +01:00
JobvAlewijk
ed11680771
Merge branch 'dev' of ssh://git.science.uu.nl/ics/sp/2025/n25b/pepperplus-ui into fix/deep-clone-data
2025-12-07 17:07:00 +01:00
JobvAlewijk
086caea737
test: high coverage for all UI tests
2025-12-07 15:32:20 +00:00
Gerla, J. (Justin)
5e22ed8806
feat: added undo and redo functionality
2025-12-07 15:21:59 +00:00
Twirre Meulenbelt
1bfcfc0458
feat: use input element directly
...
Previously, a button proxy was used which required the use of complicated reference management. Using the HTML `input` element directly simplifies the implementation.
Also moved some styles.
ref: N25B-189
2025-12-04 12:55:36 +01:00
Björn Otgaar
95397ceccc
fix: fix the tests by simulating user actions rather than the function, and avoid the cyclic dependancy which was present
...
ref: N25B-371
2025-12-04 12:33:27 +01:00
Pim Hutting
413fb05cd8
chore: applied feedback from merge request
...
Removed all the DOM manipulations and created a utils file so npx eslint
is happy.
Also changed the tests to test the new version of the code.
ref: N25B-189
2025-12-04 09:12:01 +01:00
Björn Otgaar
c167144b4d
fix: fix eslint issues, adjust norm test for dev merge
...
ref: N25B-371
2025-12-03 11:41:14 +01:00
Björn Otgaar
d9faeafe32
test: create test for phase node to account for the previous bug.
...
ref: N25B-371
2025-12-03 11:28:15 +01:00
Björn Otgaar
fe13017f2d
test: test for the actual better clone- and make sure we use the JSON stringify and parse for this since tests are weird
...
ref: N25B-371
2025-12-02 14:12:35 +01:00
Björn Otgaar
a95fbd15e6
test: create universal tests and rewrite nodes to have optional parameters for more code coverage
...
ref: N25B-362
2025-12-02 12:01:23 +01:00
JobvAlewijk
d4393e7635
test: scroll
...
ref: N25B-292
2025-12-02 11:36:10 +01:00
JobvAlewijk
2261da9915
test: robot, and 2 nodes tests added.
...
ref: N25B-292
2025-11-27 18:45:11 +01:00
Björn Otgaar
c5d9b8342d
chore: create new tests for the UI, namely normnode, and one for all nodes
2025-11-27 17:14:19 +01:00
Pim Hutting
5287cb3bf3
Merge remote-tracking branch 'origin/dev' into feat/save-load-nodes
2025-11-26 14:05:38 +01:00
Björn Otgaar
f37df1c726
chore: cleanup broken tests, add extra documentation, make sure everything is clean and code style isn't inconsistant
2025-11-19 10:13:08 +01:00
Björn Otgaar
8c2e51114e
chore: delete graph tests that fail
2025-11-18 19:23:25 +01:00
Björn Otgaar
941658a817
Merge branch 'dev' into refactor/node-encapsulation
2025-11-18 12:35:53 +01:00
Björn Otgaar
35ff58eca8
refactor: defaults should be in their own file, respecting eslint/ react standards. all tests fail, obviously.
...
ref: N25B-294
2025-11-17 16:00:36 +01:00
JobvAlewijk
476c538464
build: fixed small merge conflict
...
ref: N25B-142
2025-11-14 13:15:11 +01:00
Twirre
aeaf526797
Make nodes editable: norms, goals and keyword triggers
2025-11-13 10:50:12 +00:00
Twirre
231d7a5ba1
Add logging with filters
2025-11-12 14:35:38 +00:00
Pim Hutting
221fbe42c2
chore: added tests
...
got 50.72% code coverage. Not sure if it is feasible to mock import behaviour
ref: N25B-189
2025-11-12 14:29:59 +01:00
Björn Otgaar
be4fb0e7cd
Merge remote-tracking branch 'origin/dev' into feat/show-connected-robots
2025-11-12 11:05:59 +01:00
Gerla, J. (Justin)
d4d1aecb8c
feat: added basic functionality for editable name bar
2025-11-11 13:50:45 +00:00
Björn Otgaar
1b8095376b
fix: fixed npx eslint (also accounting for justins part)
...
ref: N25B-142
2025-11-05 17:21:36 +01:00
Björn Otgaar
571908cd70
Merge remote-tracking branch 'origin/dev' into feat/show-connected-robots
2025-11-05 16:22:46 +01:00
Gerla, J. (Justin)
c4845c6738
feat: added a behavior program reduction algorithm
2025-11-05 15:21:59 +00:00
Björn Otgaar
333bd6e6fd
chore: single typing change
2025-11-05 16:11:36 +01:00
Björn Otgaar
5e707224cf
feat: Show connected robots finished with unit test 94% coverage
...
ref: N25B-142
2025-10-30 15:47:09 +01:00
JGerla
7b12ae1f5e
test: added test for addNode error
...
added test for addNode error thrown on unexpected node type
ref: N25B-114
2025-10-25 21:09:25 +02:00
JGerla
416025bf3f
test: added test for nodeId generation
...
added test for addNode id generation
ref: N25B-114
2025-10-25 20:59:41 +02:00
JGerla
9bfc39afa1
test: added test
...
added test for addNode
ref: N25B-114
2025-10-25 20:53:09 +02:00
JGerla
8038674167
test: added tests for deleteNode function
...
ref: N25B-114
2025-10-25 17:13:42 +02:00
JGerla
c8484d28e5
test: added tests for onReconnectEnd
...
ref: N25B-114
2025-10-25 16:03:57 +02:00
JGerla
48dabb86e0
test: updated the onReconnectStart test to reflect updated setupFlowTest.ts
...
ref: N25B-114
2025-10-25 15:37:24 +02:00
JGerla
1f2b57fbcd
chore: updated setupFlowTests.ts to properly handle resetting of the flowState for each test
...
ref: N25B-114
2025-10-25 15:34:49 +02:00
JGerla
2e2bd587d0
test: Added test for onReconnectStart
...
ref: N25B-114
2025-10-25 15:27:50 +02:00
JGerla
42357217e5
test: Added test for onReconnect
...
ref: N25B-114
2025-10-25 15:17:14 +02:00
JGerla
023e1d2b8b
test: Added tests for setNodes and setEdges.
...
ref: N25B-114
2025-10-25 14:59:34 +02:00
JGerla
ea79de5ee5
style: restructured and renamed VisProg.test.tsx to VisProgStores.test.tsx
...
renamed as the functionality being tested is contained within the VisProgStores.tsx file and thus the filename for the tests should reflect that relation, so order is preserved in the project.
also added a second describe layer to group the tests for all FlowStore functions together for organisational purposes.
ref: N25B-114
2025-10-25 13:57:37 +02:00
JGerla
8513be5a56
test: added test for onConnect event
...
ref: N25B-114
2025-10-22 16:30:24 +02:00
JGerla
3bd1aa99e3
chore: added setupFlowTests.ts for ReactFlow specific testing
...
added Setup config for mocking reactflow based on the provided information in ReactFlow documentation
ref: N25B-114
2025-10-22 15:43:47 +02:00
JGerla
cbacf924f9
chore: added basic jest testing support
...
also added an example test for the counter in the components.tsx file to demonstrate functionality of testing configuration. installed all dependencies for testing using --save-dev to make sure they are stored as dev dependencies
ref: N25B-212
2025-10-21 22:18:10 +02:00