Skip to content

Commit

Permalink
test: data-testid for gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
krsiakdaniel committed Mar 6, 2024
1 parent 71dd126 commit 81d65c5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/projects/projectPage/ProjectPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ const ProjectPageLayout = ({
<div className="mt-4 flex flex-col gap-8 lg:flex-row">
<div className="flex flex-row gap-4 lg:flex-col">
{imageShowcase.map((image, index) => (
<div key={index} onClick={() => setSelectedImage(image)} className="lg:w-[212px]">
<div
key={index}
onClick={() => setSelectedImage(image)}
className="lg:w-[212px]"
data-testid="gallery-thumb"
>
<Image
src={image}
alt={`thumb-${index + 1}`}
Expand All @@ -83,7 +88,7 @@ const ProjectPageLayout = ({
</div>
))}
</div>
<div className="lg:w-[995px]">
<div className="lg:w-[995px]" data-testid="gallery-preview">
<Image
src={selectedImage}
alt="image gallery view"
Expand Down

0 comments on commit 81d65c5

Please sign in to comment.