diff --git a/components/input/Radio.js b/components/input/Radio.js index 1118ceaf2..927194ee2 100644 --- a/components/input/Radio.js +++ b/components/input/Radio.js @@ -1,11 +1,12 @@ import React from 'react'; import PropTypes from 'prop-types'; -const Radio = ({ id, children, className = 'inline-flex', ...rest }) => { + +const Radio = ({ id, children, className = 'inline-flex', cypressTag, ...rest }) => { return ( ); diff --git a/components/toggle/Toggle.js b/components/toggle/Toggle.js index 0f1b2f4e0..5d8a40c35 100644 --- a/components/toggle/Toggle.js +++ b/components/toggle/Toggle.js @@ -18,10 +18,11 @@ const label = (key) => { ); }; + /** * @type any */ -const Toggle = ({ id = 'toggle', className = '', checked = false, loading, onChange, disabled, ...rest }) => { +const Toggle = ({ id = 'toggle', className = '', checked = false, loading, onChange, disabled, cypressTag, ...rest }) => { const handleChange = (event) => { if (!disabled && onChange) { onChange(event); @@ -40,7 +41,8 @@ const Toggle = ({ id = 'toggle', className = '', checked = false, loading, onCha aria-busy={loading} {...rest} /> -