Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albertolive committed Oct 2, 2023
1 parent 3d1e0b9 commit 3b86035
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ describe('CreateAccount', () => {
it('displays account name input and suggests name', () => {
const { getByPlaceholderText } = render();

expect(getByPlaceholderText('Account 5')).toBeInTheDocument();
expect(getByPlaceholderText('Account 6')).toBeInTheDocument();
});

it('fires onActionComplete when clicked', async () => {
const onActionComplete = jest.fn();
const { getByText, getByPlaceholderText } = render({ onActionComplete });

const input = getByPlaceholderText('Account 5');
const input = getByPlaceholderText('Account 6');
const newAccountName = 'New Account Name';

fireEvent.change(input, {
Expand All @@ -54,7 +54,7 @@ describe('CreateAccount', () => {
it(`doesn't allow duplicate account names`, async () => {
const { getByText, getByPlaceholderText } = render();

const input = getByPlaceholderText('Account 5');
const input = getByPlaceholderText('Account 6');
const usedAccountName = 'Account 4';

fireEvent.change(input, {
Expand Down

0 comments on commit 3b86035

Please sign in to comment.