Skip to content

Commit

Permalink
feat: add test id
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Aug 8, 2024
1 parent e66d5e7 commit 5c4ec00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/components/complex/asset-fieldset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -157,6 +157,7 @@ const AssetFieldsetInput = forwardRef<
placeholder="0"
onChange={onInputChange}
value={inputValue}
{...rest}
/>
</div>
)}
Expand Down
1 change: 1 addition & 0 deletions packages/web/components/place-limit-tool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ export const PlaceLimitTool: FunctionComponent<PlaceLimitToolProps> = observer(
ref={inputRef}
inputValue={inputValue}
onInputChange={(e) => setAmountSafe(focused, e.target.value)}
data-testid={`trade-input-${type}`}
/>
<AssetFieldsetTokenSelector
page={page}
Expand Down

0 comments on commit 5c4ec00

Please sign in to comment.