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 +// (`