diff --git a/packages/web/components/complex/asset-fieldset.tsx b/packages/web/components/complex/asset-fieldset.tsx index a7246ea884..4a1d4e58f1 100644 --- a/packages/web/components/complex/asset-fieldset.tsx +++ b/packages/web/components/complex/asset-fieldset.tsx @@ -136,7 +136,7 @@ interface AssetFieldsetInputProps { const AssetFieldsetInput = forwardRef< HTMLInputElement, AssetFieldsetInputProps ->(({ inputPrefix, inputValue, onInputChange, outputValue }, ref) => { +>(({ inputPrefix, inputValue, onInputChange, outputValue, ...rest }, ref) => { const { isMobile } = useWindowSize(); const fontSize = calcFontSize((inputValue ?? "").length, isMobile); @@ -157,6 +157,7 @@ const AssetFieldsetInput = forwardRef< placeholder="0" onChange={onInputChange} value={inputValue} + {...rest} /> )} diff --git a/packages/web/components/place-limit-tool/index.tsx b/packages/web/components/place-limit-tool/index.tsx index 74b2a32188..c069db3c91 100644 --- a/packages/web/components/place-limit-tool/index.tsx +++ b/packages/web/components/place-limit-tool/index.tsx @@ -468,6 +468,7 @@ export const PlaceLimitTool: FunctionComponent = observer( ref={inputRef} inputValue={inputValue} onInputChange={(e) => setAmountSafe(focused, e.target.value)} + data-testid={`trade-input-${type}`} />