diff --git a/superset-frontend/src/components/Select/AsyncSelect.test.tsx b/superset-frontend/src/components/Select/AsyncSelect.test.tsx
index e49f00be537aa..c1442a6b70a1c 100644
--- a/superset-frontend/src/components/Select/AsyncSelect.test.tsx
+++ b/superset-frontend/src/components/Select/AsyncSelect.test.tsx
@@ -840,6 +840,34 @@ test('does not fire onChange when searching but no selection', async () => {
expect(onChange).toHaveBeenCalledTimes(1);
});
+test('fires onChange when clearing the selection in single mode', async () => {
+ const onChange = jest.fn();
+ render(
+ ,
+ );
+ clearAll();
+ expect(onChange).toHaveBeenCalledTimes(1);
+});
+
+test('fires onChange when clearing the selection in multiple mode', async () => {
+ const onChange = jest.fn();
+ render(
+ ,
+ );
+ clearAll();
+ expect(onChange).toHaveBeenCalledTimes(1);
+});
+
test('does not duplicate options when using numeric values', async () => {
render(
{
expect(onChange).toHaveBeenCalledTimes(1);
});
+test('fires onChange when clearing the selection in single mode', async () => {
+ const onChange = jest.fn();
+ render(
+ ,
+ );
+ clearAll();
+ expect(onChange).toHaveBeenCalledTimes(1);
+});
+
+test('fires onChange when clearing the selection in multiple mode', async () => {
+ const onChange = jest.fn();
+ render(
+ ,
+ );
+ clearAll();
+ expect(onChange).toHaveBeenCalledTimes(1);
+});
+
test('does not duplicate options when using numeric values', async () => {
render(