From d927eef247e26594eaf73a18ca2c53683aa69dd0 Mon Sep 17 00:00:00 2001 From: cchaos Date: Thu, 16 Aug 2018 15:13:56 -0400 Subject: [PATCH] Revert "Remove obsolete test & changelog" This reverts commit a5b1d3333b55af2348fda6d840c89f192d5364dc. --- CHANGELOG.md | 1 - .../__snapshots__/super_select.test.js.snap | 135 ++++++++++++++++++ .../form/super_select/super_select.test.js | 18 +++ 3 files changed, 153 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d21fee81f0..53ae5696121 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Added `zIndexAdjustment` to `EuiPopover` which allows tweaking the popover content's `z-index` ([#1097](https://github.com/elastic/eui/pull/1097)) -- Added new `EuiSuperSelect` component and `hasArrow` prop to `EuiPopover` ([#921](https://github.com/elastic/eui/pull/921)) ## [`3.6.1`](https://github.com/elastic/eui/tree/v3.6.1) diff --git a/src/components/form/super_select/__snapshots__/super_select.test.js.snap b/src/components/form/super_select/__snapshots__/super_select.test.js.snap index e2a4b6d637c..3822e4c74e7 100644 --- a/src/components/form/super_select/__snapshots__/super_select.test.js.snap +++ b/src/components/form/super_select/__snapshots__/super_select.test.js.snap @@ -824,6 +824,141 @@ exports[`EuiSuperSelect props more props are propogated to each option 2`] = ` `; +exports[`EuiSuperSelect props options are rendered when select is open 1`] = ` +
+
+ +
+
+ + Select an option: , is selected + +
+
+
+
+
+
+ +
+ + +
+
+
+
+`; + exports[`EuiSuperSelect props select component is rendered 1`] = `
{ .toMatchSnapshot(); }); + test('options are rendered when select is open', () => { + const component = mount( + {}} + data-test-subj="superSelect" + /> + ); + + component.find('button[data-test-subj="superSelect"]').simulate('click'); + + expect(takeMountedSnapshot(component)) + .toMatchSnapshot(); + }); + test('valueSelected is rendered', () => { const component = render(