forked from theHandsomestNerd/mixed-feelings-by-t
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed duplicate submit email component and added source to props up…
…date tests
- Loading branch information
1 parent
0f9baea
commit 61977ae
Showing
9 changed files
with
38 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/components/my-digital-resume/ResumeBioSection.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import {render, screen} from '@testing-library/react'; | ||
import expect from "expect"; | ||
import {ResumeBioSectionComplete} from "../../stories/digital-resume/ResumeBio.stories"; | ||
|
||
describe('Resume Bio Section', () => { | ||
test('renders all components of bio', async () => { | ||
render(<ResumeBioSectionComplete.render {...ResumeBioSectionComplete.args}/>) | ||
|
||
expect(await screen.findAllByRole('button')).toHaveLength(1) | ||
expect(await screen.findAllByRole('link')).toHaveLength(8) | ||
expect(screen.getByTestId('bio-image')).toBeInTheDocument() | ||
expect(screen.getByTestId('social-media-block')).toBeInTheDocument() | ||
expect(screen.getByTestId('submit-email-block')).toBeInTheDocument() | ||
expect((await screen.findByText('Contact Me'))).toBeInTheDocument() | ||
expect((await screen.findByText('Meet with Me'))).toBeInTheDocument() | ||
expect((await screen.findByText('Download Resume'))).toBeInTheDocument() | ||
expect(await screen.findByText('James Terrell Singleton')).toBeInTheDocument() | ||
expect(await screen.findByText('I am a Web Developer located in the Maryand, District of Columbia, and Virginia Metropolitan area. I currently work as a remote fullstack software engineer for Assembled Financial, located in Los Angeles, CA. I am looking to take on more work, to increase my skills as a Web Developer, and to make things that are great. I am open to relocation.')).toBeInTheDocument() | ||
expect(await screen.findByText('443.992.2191')).toBeInTheDocument() | ||
expect(await screen.findByText('terrell.singleton@gmail.com')).toBeInTheDocument() | ||
expect(await screen.findByText('7300 Roselynn Lane, Clinton, MD 20735')).toBeInTheDocument() | ||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters