From e8082c9efaba24539fa8ec877ad682f3a643d3e9 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 4 Dec 2017 18:14:38 -0800 Subject: [PATCH 1/3] Add test coverage for EuiButtonEmpty. --- .../__snapshots__/button_empty.test.js.snap | 246 ++++++++++++++++++ .../button/button_empty/button_empty.test.js | 90 ++++++- 2 files changed, 334 insertions(+), 2 deletions(-) diff --git a/src/components/button/button_empty/__snapshots__/button_empty.test.js.snap b/src/components/button/button_empty/__snapshots__/button_empty.test.js.snap index e3f5b15f11f..0efdcabf2c8 100644 --- a/src/components/button/button_empty/__snapshots__/button_empty.test.js.snap +++ b/src/components/button/button_empty/__snapshots__/button_empty.test.js.snap @@ -6,6 +6,252 @@ exports[`EuiButtonEmpty is rendered 1`] = ` class="euiButtonEmpty euiButtonEmpty--primary testClass1 testClass2" data-test-subj="test subject string" type="button" +> + + + Content + + + +`; + +exports[`EuiButtonEmpty props color danger is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props color disabled is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props color ghost is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props color primary is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props color text is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props flush left is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props flush right is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props iconSide left is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props iconSide right is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props iconType is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props isDisabled is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props size l is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props size s is rendered 1`] = ` + +`; + +exports[`EuiButtonEmpty props size xs is rendered 1`] = ` + +`; + +exports[`EuiButtonIcon props isDisabled is rendered 1`] = ` + +`; + +exports[`EuiButton props color danger is rendered 1`] = ` + +`; + +exports[`EuiButton props color ghost is rendered 1`] = ` + +`; + +exports[`EuiButton props color primary is rendered 1`] = ` + +`; + +exports[`EuiButton props color secondary is rendered 1`] = ` + +`; + +exports[`EuiButton props color warning is rendered 1`] = ` + +`; + +exports[`EuiButton props fill is rendered 1`] = ` + +`; + +exports[`EuiButton props iconSide left is rendered 1`] = ` + +`; + +exports[`EuiButton props iconSide right is rendered 1`] = ` + +`; + +exports[`EuiButton props iconType is rendered 1`] = ` + +`; + +exports[`EuiButton props isDisabled is rendered 1`] = ` + +`; + +exports[`EuiButton props size l is rendered 1`] = ` + +`; + +exports[`EuiButton props size s is rendered 1`] = ` +