Skip to content

Commit 8e791ea

Browse files
authored
Merge pull request #184 from scientist-softserv/add-more-data-cy
Add more data cy
2 parents 792b95b + 22d99e2 commit 8e791ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compounds/Item/Item.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Item = ({ buttonLink, buttonProps, href, isLoading, item, orientation, tit
2929
if (withTitleLink || withButtonLink) link = titleLink || buttonLink || href
3030

3131
return (
32-
<Card key={id} style={{ width: `${width}` }} className={`h-100${orientation === 'horizontal' ? ' mb-4' : ''}`}>
32+
<Card key={id} style={{ width: `${width}` }} className={`h-100${orientation === 'horizontal' ? ' mb-4' : ''}`} data-cy='item-card'>
3333
{orientation === 'horizontal' ? (
3434
<div className='row g-0 h-100'>
3535
<div className='col-3'>

src/compounds/Item/ItemLoading.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Card, Placeholder } from 'react-bootstrap'
44
import './item.scss'
55

66
const CardBodyLoading = ({ withButtonLink }) => (
7-
<Card.Body className={withButtonLink && 'd-flex flex-column'}>
7+
<Card.Body className={withButtonLink && 'd-flex flex-column'} data-cy='item-loading'>
88
<Placeholder as={Card.Title} animation='glow'>
99
<Placeholder xs={6} />
1010
</Placeholder>

0 commit comments

Comments
 (0)