Skip to content

Commit

Permalink
fixup! Add test that save button is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Aug 30, 2024
1 parent 82610d4 commit 3dcde5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/setup/account.page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ describe('Setup account page', () => {
const { getByRole } = render(<TestComponent />);

expect(getByRole('button', { name: 'Continue Tour' })).toBeDisabled();

userEvent.click(getByRole('combobox', { name: 'Account' }));
userEvent.click(getByRole('option', { name: 'Account List 1' }));
expect(getByRole('button', { name: 'Continue Tour' })).not.toBeDisabled();
});
});

Expand Down

0 comments on commit 3dcde5f

Please sign in to comment.