This repository was archived by the owner on Jan 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const images = [
6767] ;
6868
6969describe ( "Gallery" , ( ) => {
70- it ( "show the image when the user clicks on it" , async ( ) => {
70+ it ( "shows the image when the user clicks on it" , async ( ) => {
7171 render (
7272 < Page >
7373 < Gallery images = { images } />
Original file line number Diff line number Diff line change 1+ import { fireEvent , render , screen } from "@testing-library/react" ;
2+ import { Page } from "../src/components/design-system/templates/page" ;
3+ import React from "react" ;
4+ import { Resume } from "../src/components/design-system/organism/resume" ;
5+
6+ describe ( "Resume" , ( ) => {
7+ it ( "shows the correct tab on click" , async ( ) => {
8+ render (
9+ < Page >
10+ < Resume />
11+ </ Page >
12+ ) ;
13+
14+ const experienceTab = screen . getByText ( "Experience" ) ;
15+ await fireEvent . click ( experienceTab ) ;
16+
17+ expect ( screen . getByText ( "Master's degree in Computer Science" ) ) . toBeDefined ( ) ;
18+
19+ const projectsTab = screen . getByText ( "Projects" ) ;
20+ await fireEvent . click ( projectsTab ) ;
21+
22+ expect ( screen . getByText ( "Spectral Clara Lux Tracer" ) ) . toBeDefined ( ) ;
23+ } ) ;
24+ } ) ;
You can’t perform that action at this time.
0 commit comments