Skip to content

Commit 81c3244

Browse files
fixup! test: Fix failing test
1 parent 668656e commit 81c3244

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

__tests__/components/stake/modals/StakingUnstakeModal.test.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ describe('Staking Unstake Modal', () => {
9999
const numberInput = getByRole('spinbutton');
100100

101101
fireEvent.focus(numberInput);
102-
await userEvent.type(numberInput, '10000', {});
103-
await waitFor(() => expect(numberInput).toHaveValue('10000'), {
104-
timeout: 4000,
105-
});
102+
await userEvent.type(numberInput, '10', {});
103+
await waitFor(() => expect(numberInput).toHaveValue('10'));
106104

107105
const button = getByRole('unstake-button');
108106

@@ -113,7 +111,7 @@ describe('Staking Unstake Modal', () => {
113111
fireEvent.click(button);
114112

115113
expect(onSave).toHaveBeenCalled();
116-
expect(onSave).toHaveBeenCalledWith('partial', parseUnits('10000', 18));
114+
expect(onSave).toHaveBeenCalledWith('partial', parseUnits('10', 18));
117115
});
118116

119117
it('Should disable stake button when partial amount is selected', async () => {

0 commit comments

Comments
 (0)