Skip to content

Commit

Permalink
chore: Enzyme replacement in test files- PR 2 of 6 for part 3 of 3 (#…
Browse files Browse the repository at this point in the history
…7222)

#### Details

Replacement of Enzyme in files under
src/tests/unit/tests/common/component

##### Motivation
Existing story: [User Story:
2142861](https://dev.azure.com/mseng/1ES/_workitems/edit/2142861)

Replaced the use of Enzyme in the below files:

1.
src/tests/unit/tests/reports/components/report-sections/summary-results-table.test.tsx
2.
src/tests/unit/tests/reports/components/report-sections/tab-stops-checks-section-wrapper.test.tsx
3.
src/tests/unit/tests/reports/components/report-sections/tab-stops-report-instance-list.test.tsx
4.
src/tests/unit/tests/reports/components/report-sections/tool-link.test.tsx
5.
src/tests/unit/tests/reports/components/report-sections/url-errors-table.test.tsx
6.
src/tests/unit/tests/reports/components/report-sections/url-scan-results-table.test.tsx
7.
src/tests/unit/tests/reports/components/report-sections/urls-summary-section.test.tsx
8.
src/tests/unit/tests/reports/components/assessment-report-body-header.test.tsx
9.
src/tests/unit/tests/reports/components/assessment-report-body.test.tsx
10.
src/tests/unit/tests/reports/components/assessment-report-footer.test.tsx
11.
src/tests/unit/tests/reports/components/assessment-report-step-list.test.tsx
12. src/tests/unit/tests/reports/components/assessment-report.test.tsx
13.
src/tests/unit/tests/reports/components/assessment-summary-details.test.tsx
14.
src/tests/unit/tests/reports/components/fast-pass-report-automated-checks-results.test.tsx
15.
src/tests/unit/tests/reports/components/fast-pass-report-summary.test.tsx
16. src/tests/unit/tests/reports/components/fast-pass-report.test.tsx
17. src/tests/unit/tests/reports/components/header-bar.test.tsx
18. src/tests/unit/tests/reports/components/outcome-chip-set.test.tsx
19.
src/tests/unit/tests/reports/components/report-sections/summary-section.test.tsx
20.
src/tests/unit/tests/reports/components/assessment-report-assessment-list.test.tsx
21.
src/tests/unit/tests/reports/components/assessment-report-step-header.test.tsx
22. src/tests/unit/tests/reports/components/inline-image.test.tsx
23.
src/tests/unit/tests/reports/components/new-tab-link-confirmation-dialog.test.tsx

##### Context

#### Pull request checklist
<!-- If a checklist item is not applicable to this change, write "n/a"
in the checkbox -->
- [x] Addresses an existing issue: [User Story:
2132090](https://dev.azure.com/mseng/1ES/_workitems/edit/2142861)
- [x] Ran `yarn fastpass`
- [x] Added/updated relevant unit test(s) (and ran `yarn test`)
- [x] Verified code coverage for the changes made. Check coverage report
at: `<rootDir>/test-results/unit/coverage`
- [x] PR title *AND* final merge commit title both start with a semantic
tag (`fix:`, `chore:`, `feat(feature-name):`, `refactor:`). See
`CONTRIBUTING.md`.
- [n/a] (UI changes only) Added screenshots/GIFs to description above
- [n/a] (UI changes only) Verified usability with NVDA/JAWS
  • Loading branch information
v-prachin authored Mar 1, 2024
1 parent 4ae1417 commit ad27c8f
Show file tree
Hide file tree
Showing 45 changed files with 2,558 additions and 1,881 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AssessmentReportBodyHeader render render function test 1`] = `
<div
className="assessment-report-body-header"
>
<h1>
Assessment report
</h1>
<p>
This report shows the overall accessibility of the website or web app through a combination of automated and manual tests that cover all the WCAG 2.1 AA and 2.2 AA success criteria.
</p>
</div>
<DocumentFragment>
<div
class="assessment-report-body-header"
>
<h1>
Assessment report
</h1>
<p>
This report shows the overall accessibility of the website or web app through a combination of automated and manual tests that cover all the WCAG 2.1 AA and 2.2 AA success criteria.
</p>
</div>
</DocumentFragment>
`;
Loading

0 comments on commit ad27c8f

Please sign in to comment.