Skip to content

Commit

Permalink
fix: test case in OrderSummaryCard
Browse files Browse the repository at this point in the history
  • Loading branch information
r41ph committed Oct 9, 2024
1 parent 0c858e2 commit d235204
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ describe('OrderSummaryCard', () => {
name: /edit/i,
});
fireEvent.click(editButton);
const editInput = screen.queryByRole('textbox', {
name: 'editable-credits',
});
const editInput = screen.getByTestId(/editable-input/i);

if (editInput) {
fireEvent.change(editInput, { target: { value: 7 } });

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const EditableInput = ({
aria-label={inputAriaLabel}
name={name}
autoFocus
data-testid="editable-input"
/>
<TextButton
className="lowercase text-[12px] mt-5 sm:mt-0"
Expand Down

0 comments on commit d235204

Please sign in to comment.