Skip to content

Commit

Permalink
Remove two warnings about wrapping user actions in 'act'
Browse files Browse the repository at this point in the history
  • Loading branch information
julienw committed Jan 9, 2025
1 parent 64e89aa commit 9b072f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/components/ProfileName.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('ProfileName', function () {
expect(getProfileNameFromUrl(getState())).toBe(null);

// Click the button to activate it.
button.click();
fireEvent.click(button);
const input = getByDisplayValue(defaultName);

expect(queryByText('Custom name')).not.toBeInTheDocument();
Expand All @@ -92,7 +92,7 @@ describe('ProfileName', function () {
withAnalyticsMock(() => {
const { getByText, getByDisplayValue } = setup();
const button = getByText(defaultName);
button.click();
fireEvent.click(button);
const input = getByDisplayValue(defaultName);
fireEvent.change(input, { target: { value: 'Custom name' } });
fireEvent.blur(input);
Expand Down

0 comments on commit 9b072f8

Please sign in to comment.