Skip to content

Commit ee398c1

Browse files
committed
test(counter): fix unit test for counter
1 parent 604b151 commit ee398c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Counter/Counter.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('Counter', () => {
4646

4747
expect(ammountInput).toHaveValue(10);
4848

49-
const setButton = screen.getByRole('button', { name: 'Set' });
49+
const setButton = screen.getByRole('button', { name: 'Set Value' });
5050
await user.click(setButton);
5151

5252
const countElement = screen.getByRole('heading', { level: 2 });
@@ -57,7 +57,7 @@ describe('Counter', () => {
5757
const user = userEvents.setup();
5858

5959
const ammountInput = screen.getByRole('spinbutton');
60-
const setButton = screen.getByRole('button', { name: 'Set' });
60+
const setButton = screen.getByRole('button', { name: 'Set Value' });
6161
const incrementButton = screen.getByRole('button', { name: 'Increment' });
6262

6363
await user.tab();

0 commit comments

Comments
 (0)