fix(web): name assigner add operation (#40337)

This commit is contained in:
yyh
2026-08-10 02:56:18 +00:00
committed by GitHub
parent 9c5d76c299
commit 1017a76b4c
2 changed files with 6 additions and 3 deletions
@@ -105,7 +105,7 @@ describe('assigner/panel', () => {
}),
)
await user.click(screen.getAllByRole('button')[0]!)
await user.click(screen.getByRole('button', { name: 'common.operation.add' }))
expect(mockUseHandleAddOperationItem).toHaveBeenCalledWith(createData().items)
expect(handleOperationListChanges).toHaveBeenCalledWith([
@@ -38,8 +38,11 @@ const Panel: FC<NodePanelProps<AssignerNodeType>> = ({ id, data }) => {
<div className="flex grow flex-col items-start justify-center system-sm-semibold-uppercase text-text-secondary">
{t(($) => $[`${i18nPrefix}.variables`], { ns: 'workflow' })}
</div>
<ActionButton onClick={handleAddOperation}>
<RiAddLine className="size-4 shrink-0 text-text-tertiary" />
<ActionButton
aria-label={t(($) => $['operation.add'], { ns: 'common' })}
onClick={handleAddOperation}
>
<RiAddLine aria-hidden="true" className="size-4 shrink-0 text-text-tertiary" />
</ActionButton>
</div>
<VarList