From aa48cae6fbbf9f319a3956052df56b51dd01683c Mon Sep 17 00:00:00 2001
From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com>
Date: Mon, 7 Nov 2022 10:11:28 -0500
Subject: [PATCH] chore: Adds RTL tests to DropdownContainer (#22041)
---
.../DropdownContainer.stories.tsx | 6 +-
.../DropdownContainer.test.tsx | 143 ++++++++++++++++++
.../DropdownContainer/Overview.stories.mdx | 17 +++
.../components/DropdownContainer/index.tsx | 54 +++----
.../src/components/Select/styles.tsx | 3 +
5 files changed, 193 insertions(+), 30 deletions(-)
create mode 100644 superset-frontend/src/components/DropdownContainer/DropdownContainer.test.tsx
create mode 100644 superset-frontend/src/components/DropdownContainer/Overview.stories.mdx
diff --git a/superset-frontend/src/components/DropdownContainer/DropdownContainer.stories.tsx b/superset-frontend/src/components/DropdownContainer/DropdownContainer.stories.tsx
index e2fe280dd..d72b1bdd3 100644
--- a/superset-frontend/src/components/DropdownContainer/DropdownContainer.stories.tsx
+++ b/superset-frontend/src/components/DropdownContainer/DropdownContainer.stories.tsx
@@ -31,7 +31,7 @@ export default {
const ITEMS_COUNT = 6;
const ITEM_OPTIONS = 10;
const MIN_WIDTH = 700;
-const MAX_WIDTH = 1500;
+const MAX_WIDTH = 1300;
const HEIGHT = 400;
const itemsOptions = Array.from({ length: ITEM_OPTIONS }).map((_, i) => ({
@@ -47,10 +47,10 @@ const generateItems = (overflowingState?: OverflowingState) =>
Array.from({ length: ITEMS_COUNT }).map((_, i) => ({
id: `el-${i}`,
element: (
-
+