Skip to content

Commit 2b15cad

Browse files
committed
fix unit test
1 parent e9a891e commit 2b15cad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app/components/UI/Earn/Views/EarnWithdrawInputView/EarnWithdrawInputView.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,12 @@ describe('EarnWithdrawInputView', () => {
973973
await act(async () => {
974974
fireEvent.press(screen.getByText('1'));
975975
});
976+
977+
// Reveal the TRON unstake preview, which renders the "Unstake" button.
978+
await act(async () => {
979+
fireEvent.press(screen.getByText('Done'));
980+
});
981+
976982
await waitFor(() => {
977983
expect(screen.getAllByText('Unstake')[0]).toBeOnTheScreen();
978984
});

0 commit comments

Comments
 (0)