diff --git a/src/components/SearchBar/SearchBar.jsx b/src/components/SearchBar/SearchBar.jsx index f61e02dc..57804f25 100644 --- a/src/components/SearchBar/SearchBar.jsx +++ b/src/components/SearchBar/SearchBar.jsx @@ -14,7 +14,7 @@ const SearchBar = ({ addClass, initialValue, onSubmit, placeholder }) => { return (
-
+ diff --git a/src/compounds/ItemGroup/ItemGroup.jsx b/src/compounds/ItemGroup/ItemGroup.jsx index 2ab88ce3..3f89e491 100644 --- a/src/compounds/ItemGroup/ItemGroup.jsx +++ b/src/compounds/ItemGroup/ItemGroup.jsx @@ -9,7 +9,7 @@ import './item-group.scss' const ItemGroup = ({ buttonProps, items, isLoading, orientation, withButtonLink, withTitleLink }) => ( <> - <Row xs={1} sm={2} className={`g-5 mb-5 ${orientation === 'vertical' && 'row-cols-md-3'}`}> + <Row xs={1} sm={2} className={`g-5 mb-5 ${orientation === 'vertical' && 'row-cols-md-3'}`} data-cy='item-group'> {isLoading ? ( <> diff --git a/src/compounds/TitledTextBox/TitledTextBox.jsx b/src/compounds/TitledTextBox/TitledTextBox.jsx index 5726d31f..b1e8d013 100644 --- a/src/compounds/TitledTextBox/TitledTextBox.jsx +++ b/src/compounds/TitledTextBox/TitledTextBox.jsx @@ -3,14 +3,15 @@ import PropTypes from 'prop-types' import { TextBox, Title } from '../../components' import './titled-text-box.css' -const TitledTextBox = ({ text, textAlignment, textSize, textStyle, title, titleAlignment, titleSize, titleStyle }) => ( - <section className='titled-text-box'> +const TitledTextBox = ({ dataCy, text, textAlignment, textSize, textStyle, title, titleAlignment, titleSize, titleStyle }) => ( + <section className='titled-text-box' data-cy={dataCy}> <Title addClass='mb-2' alignment={titleAlignment} size={titleSize} style={titleStyle} title={title} /> <TextBox alignment={textAlignment} size={textSize} style={textStyle} text={text} /> </section> ) TitledTextBox.propTypes = { + dataCy: PropTypes.string, text: PropTypes.string.isRequired, textAlignment: PropTypes.oneOf(['left', 'center', 'right']), textSize: PropTypes.oneOf(['small', 'medium', 'large']), @@ -22,6 +23,7 @@ TitledTextBox.propTypes = { } TitledTextBox.defaultProps = { + dataCy: '', textAlignment: 'left', textSize: 'medium', textStyle: {},