Skip to content
Merged
Prev Previous commit
Update tests.
  • Loading branch information
juanfra committed Oct 25, 2025
commit 1657aa347e7e847b511e95c1d120d75c85604470
5 changes: 2 additions & 3 deletions packages/components/src/combobox-control/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ describe.each( [
<Component
options={ timezones }
label={ defaultLabelText }
value={ timezones[ 0 ].value }
allowReset={ false }
/>
);
Expand Down Expand Up @@ -427,7 +426,6 @@ describe.each( [
<Component
options={ timezones }
label={ defaultLabelText }
value={ targetOption.value }
allowReset
/>
);
Expand All @@ -454,6 +452,7 @@ describe.each( [
// Pressing Enter/Return resets the input.
await user.keyboard( '{Enter}' );

expect( resetButton ).not.toBeInTheDocument();
expect( input ).toHaveValue( '' );
expect( input ).toHaveFocus();
} );
Expand All @@ -466,7 +465,6 @@ describe.each( [
<Component
options={ timezones }
label={ defaultLabelText }
value={ targetOption.value }
allowReset
/>
);
Expand All @@ -493,6 +491,7 @@ describe.each( [
// Pressing Spacebar resets the input.
await user.keyboard( '[Space]' );

expect( resetButton ).not.toBeInTheDocument();
expect( input ).toHaveValue( '' );
expect( input ).toHaveFocus();
} );
Expand Down
Loading