Skip to content

Commit

Permalink
update act
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGreiner-eaton committed Mar 8, 2024
1 parent 2cf4dac commit 3771e99
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,10 @@ describe('Create Account Screen', () => {

const backButton = getByText('Back');
expect(backButton).toBeInTheDocument();
// expect(screen.getByText(/Back/i)).toBeEnabled();
await act(async () => {
expect(await screen.findByText('Back')).toBeEnabled();
fireEvent.click(backButton);
});
// fireEvent.click(backButton);
expect(mockOnPrevious).toHaveBeenCalled();
});

Expand Down

0 comments on commit 3771e99

Please sign in to comment.