test(core): add basic tests for template doc setting (#9702)

close AF-2112, AF-2114, AF-2115
This commit is contained in:
CatsJuice
2025-01-16 02:28:29 +00:00
parent 0ed9258f51
commit ad86292f45
8 changed files with 196 additions and 10 deletions

View File

@@ -27,7 +27,11 @@ const DocItem = ({ doc, onSelect }: DocItemProps) => {
}, [doc.id, onSelect]);
return (
<MenuItem prefixIcon={<Icon />} onClick={onClick}>
<MenuItem
prefixIcon={<Icon />}
onClick={onClick}
data-testid={`template-doc-item-${doc.id}`}
>
{title}
</MenuItem>
);