diff --git a/package.json b/package.json index b50ae32f1..8a90807d6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "open-plc-editor", "description": "OpenPLC Editor - IDE capable of creating programs for the OpenPLC Runtime", - "version": "4.2.9", + "version": "4.2.10", "license": "GPL-3.0", "author": { "name": "Autonomy Logic" diff --git a/src/frontend/components/_molecules/project-tree/__tests__/leaf-highlight.test.tsx b/src/frontend/components/_molecules/project-tree/__tests__/leaf-highlight.test.tsx new file mode 100644 index 000000000..6ccd11fc7 --- /dev/null +++ b/src/frontend/components/_molecules/project-tree/__tests__/leaf-highlight.test.tsx @@ -0,0 +1,71 @@ +import { fireEvent, render, screen } from '@testing-library/react' + +import { useOpenPLCStore } from '../../../../store' +import { ProjectTreeExpandableLeaf, ProjectTreeLeaf } from '../index' + +// https://github.com/Autonomy-Logic/openplc-editor/issues/640 +// The explorer used to pass a search-highlight HTML string as the leaf `label`, +// which ProjectTreeLeaf renders as plain text — after any project search, the +// matching POU's name appeared in the tree as literal markup +// (`