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.
resume feedback and resume portfolio tests
- Loading branch information
1 parent
c2bcde8
commit aa0fd6c
Showing
8 changed files
with
56 additions
and
26 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
17 changes: 17 additions & 0 deletions
17
src/components/my-digital-resume/resume-feedback-section/ResumeFeedbackSection.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,17 @@ | ||
import {render, screen} from '@testing-library/react'; | ||
import expect from "expect"; | ||
import {ResumePortfolioSectionStory} from "../../../stories/digital-resume/ResumePortfolio.stories"; | ||
import {ResumeFeedbackSectionStory} from "../../../stories/digital-resume/ResumeFeedback.stories"; | ||
|
||
describe('Resume Feedback Section', () => { | ||
test('renders all components of feedback section', async () => { | ||
render(<ResumeFeedbackSectionStory.render {...ResumeFeedbackSectionStory.args}/>) | ||
|
||
expect((await screen.findByText('Feedback'))).toBeInTheDocument() | ||
expect((await screen.findByText('.'))).toBeInTheDocument() | ||
expect(await screen.findByText('Take a look at the reviews of my customers and ensure the quality of my services.')).toBeInTheDocument() | ||
expect(await screen.findAllByText('JamWorks')).toHaveLength(2) | ||
expect(await screen.findByText('CEO')).toBeInTheDocument() | ||
expect(await screen.findByText('@')).toBeInTheDocument() | ||
}); | ||
}) |
12 changes: 6 additions & 6 deletions
12
...-digital-resume/ResumeFeedbackSection.tsx → ...eedback-section/ResumeFeedbackSection.tsx
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
16 changes: 16 additions & 0 deletions
16
src/components/my-digital-resume/resume-portfolio-section/ResumePortfolioSection.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,16 @@ | ||
import {render, screen} from '@testing-library/react'; | ||
import expect from "expect"; | ||
import {ResumePortfolioSectionStory} from "../../../stories/digital-resume/ResumePortfolio.stories"; | ||
|
||
describe('Resume Portfolio Section', () => { | ||
test('renders all components of portfolio section', async () => { | ||
render(<ResumePortfolioSectionStory.render {...ResumePortfolioSectionStory.args}/>) | ||
|
||
expect((await screen.findByText('Portfolio'))).toBeInTheDocument() | ||
expect((await screen.findByText('.'))).toBeInTheDocument() | ||
expect(await screen.findAllByRole('button')).toHaveLength(8) | ||
expect(await screen.findByText('This is my Portfolio. These projects are in various stages of completion.')).toBeInTheDocument() | ||
expect(await screen.findByText('Fintech Company Website')).toBeInTheDocument() | ||
expect(await screen.findByText('Sep 2019')).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