test: add tests for some base components (#32479)

This commit is contained in:
Saumya Talwani
2026-02-25 13:38:03 +05:30
committed by GitHub
parent 34b6fc92d7
commit 6f2c101e3c
26 changed files with 3577 additions and 78 deletions

View File

@ -100,8 +100,8 @@ const MarkdownForm = ({ node }: any) => {
return (
<label
key={index}
htmlFor={child.properties.for}
className="system-md-semibold my-2 text-text-secondary"
htmlFor={child.properties.htmlFor || child.properties.name}
className="my-2 text-text-secondary system-md-semibold"
>
{child.children[0]?.value || ''}
</label>
@ -161,6 +161,7 @@ const MarkdownForm = ({ node }: any) => {
[child.properties.name]: !prevValues[child.properties.name],
}))
}}
id={child.properties.name}
/>
<span>{child.properties.dataTip || child.properties['data-tip'] || ''}</span>
</div>