mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
test(core): add basic tests for template doc setting (#9702)
close AF-2112, AF-2114, AF-2115
This commit is contained in:
@@ -161,7 +161,7 @@ function AddPageWithAsk({ className, style }: AddPageButtonProps) {
|
||||
<Button
|
||||
tooltip={t['New Page']()}
|
||||
tooltipOptions={sideBottom}
|
||||
data-testid="sidebar-new-page-button"
|
||||
data-testid="sidebar-new-page-with-ask-button"
|
||||
className={clsx([styles.withAskRoot, className])}
|
||||
style={style}
|
||||
>
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user