From dea0bd4aad58af77f25fb46ae83f4986dfe6237a Mon Sep 17 00:00:00 2001 From: Caroline Horn <549577+cchaos@users.noreply.github.com> Date: Wed, 29 Sep 2021 15:25:11 -0400 Subject: [PATCH] [EuiSuperSelect] Update jest test for `popoverProps` to simulate click first (#5223) --- .../__snapshots__/super_select.test.tsx.snap | 356 +++++++----------- .../form/super_select/super_select.test.tsx | 5 +- 2 files changed, 150 insertions(+), 211 deletions(-) diff --git a/src/components/form/super_select/__snapshots__/super_select.test.tsx.snap b/src/components/form/super_select/__snapshots__/super_select.test.tsx.snap index b210918e653..d4c51f36421 100644 --- a/src/components/form/super_select/__snapshots__/super_select.test.tsx.snap +++ b/src/components/form/super_select/__snapshots__/super_select.test.tsx.snap @@ -704,230 +704,166 @@ exports[`EuiSuperSelect props options are rendered when select is open 1`] = ` `; exports[`EuiSuperSelect props renders popoverProps on the underlying EuiPopover 1`] = ` - - +
+ - } - isOpen={false} - panelClassName="goes-on-popover-panel" - panelPaddingSize="none" - repositionOnScroll={true} - > - - [Function] - - } - buttonRef={[Function]} - className="euiInputPopover euiSuperSelect goes-on-outermost-wrapper" - closePopover={[Function]} - display="block" - hasArrow={true} - isOpen={false} - ownFocus={false} - panelClassName="goes-on-popover-panel" - panelPaddingSize="none" - panelRef={[Function]} - repositionOnScroll={true} - > -
+ + Select an option: Option #2, is selected + +
- + +
+
+
+ + +
+
+
+