test: add cypress foundation (#2903) [skip ci]

This commit is contained in:
Ryan Cohen
2022-08-15 08:34:38 +09:00
committed by GitHub
parent db898db9f2
commit 22ec058431
27 changed files with 848 additions and 17 deletions

View File

@@ -78,7 +78,10 @@ const TitleCard: React.FC<TitleCardProps> = ({
);
return (
<div className={canExpand ? 'w-full' : 'w-36 sm:w-36 md:w-44'}>
<div
className={canExpand ? 'w-full' : 'w-36 sm:w-36 md:w-44'}
data-testid="title-card"
>
<RequestModal
tmdbId={id}
show={showRequestModal}
@@ -212,6 +215,7 @@ const TitleCard: React.FC<TitleCardProps> = ({
WebkitBoxOrient: 'vertical',
wordBreak: 'break-word',
}}
data-testid="title-card-title"
>
{title}
</h1>