Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more data cy #184

Merged
merged 3 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compounds/Item/Item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Item = ({ buttonLink, buttonProps, href, isLoading, item, orientation, tit
if (withTitleLink || withButtonLink) link = titleLink || buttonLink || href

return (
<Card key={id} style={{ width: `${width}` }} className={`h-100${orientation === 'horizontal' ? ' mb-4' : ''}`}>
<Card key={id} style={{ width: `${width}` }} className={`h-100${orientation === 'horizontal' ? ' mb-4' : ''}`} data-cy='item-card'>
{orientation === 'horizontal' ? (
<div className='row g-0 h-100'>
<div className='col-3'>
Expand Down
2 changes: 1 addition & 1 deletion src/compounds/Item/ItemLoading.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Card, Placeholder } from 'react-bootstrap'
import './item.scss'

const CardBodyLoading = ({ withButtonLink }) => (
<Card.Body className={withButtonLink && 'd-flex flex-column'}>
<Card.Body className={withButtonLink && 'd-flex flex-column'} data-cy='item-loading'>
<Placeholder as={Card.Title} animation='glow'>
<Placeholder xs={6} />
</Placeholder>
Expand Down
Loading