Skip to content

Commit

Permalink
Bump code coverage for 10207 (#29125)
Browse files Browse the repository at this point in the history
* Bump code coverage for 10207

* Use forms-system FileField

* add ariaLabelAdditionalText to FileField
  • Loading branch information
rhasselle-oddball authored Apr 11, 2024
1 parent 25ad1e4 commit 2b3983b
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 2,252 deletions.
731 changes: 0 additions & 731 deletions src/applications/simple-forms/20-10207/components/FileField.jsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import environment from 'platform/utilities/environment';

import { titleUI } from 'platform/forms-system/src/js/web-component-patterns/titlePattern';
import { FileField } from '../components/FileField';
import FileField from 'platform/forms-system/src/js/fields/FileField';
import AlsViewField from '../components/AlsViewField';

import { ALS_DESCRIPTION } from '../config/constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import environment from 'platform/utilities/environment';

import { titleUI } from 'platform/forms-system/src/js/web-component-patterns/titlePattern';
import { FileField } from '../components/FileField';
import FileField from 'platform/forms-system/src/js/fields/FileField';
import FinancialHardshipViewField from '../components/FinancialHardshipViewField';

import { FINANCIAL_HARDSHIP_DESCRIPTION } from '../config/constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import environment from 'platform/utilities/environment';

import { titleUI } from 'platform/forms-system/src/js/web-component-patterns/titlePattern';
import { FileField } from '../components/FileField';
import FileField from 'platform/forms-system/src/js/fields/FileField';
import MedalAwardViewField from '../components/MedalAwardViewField';

import { MEDAL_AWARD_DESCRIPTION } from '../config/constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import environment from 'platform/utilities/environment';

import { titleUI } from 'platform/forms-system/src/js/web-component-patterns/titlePattern';
import { FileField } from '../components/FileField';
import FileField from 'platform/forms-system/src/js/fields/FileField';
import PowViewField from '../components/PowViewField';

import { POW_DESCRIPTION } from '../config/constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import environment from 'platform/utilities/environment';

import { titleUI } from 'platform/forms-system/src/js/web-component-patterns/titlePattern';
import { FileField } from '../components/FileField';
import FileField from 'platform/forms-system/src/js/fields/FileField';
import TerminalIllnessViewField from '../components/TerminalIllnessViewField';

import { TERMINAL_ILLNESS_DESCRIPTION } from '../config/constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import environment from 'platform/utilities/environment';

import { titleUI } from 'platform/forms-system/src/js/web-component-patterns/titlePattern';
import { FileField } from '../components/FileField';
import FileField from 'platform/forms-system/src/js/fields/FileField';
import VsiViewField from '../components/VsiViewField';

import { VSI_DESCRIPTION } from '../config/constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"veteranPhone": "1234567890",
"otherReasons": {
"OVER_85": true
"OVER_85": true
},
"view:hasReceivedMedicalTreatment": true,
"medicalTreatments": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ const responses = {
'GET /v0/feature_toggles': mockFeatureToggles,
'GET /v0/in_progress_forms/20-10207': mockSipGet,
'PUT /v0/in_progress_forms/20-10207': mockSipPut,
'POST /simple_forms_api/v1/simple_forms/submit_financial_hardship_documents': mockUpload,
'POST /simple_forms_api/v1/simple_forms/submit_terminal_illness_documents': mockUpload,
'POST /simple_forms_api/v1/simple_forms/submit_als_documents': mockUpload,
'POST /simple_forms_api/v1/simple_forms/submit_vsi_documents': mockUpload,
'POST /simple_forms_api/v1/simple_forms/submit_pow_documents': mockUpload,
'POST /simple_forms_api/v1/simple_forms/submit_pow_documents2': mockUpload,
'POST /simple_forms_api/v1/simple_forms/submit_medal_award_documents': mockUpload,
'POST /simple_forms_api/v1/simple_forms/submit_medal_award_documents2': mockUpload,
'POST /simple_forms_api/v1/simple_forms/submit_supporting_documents': mockUpload,
'POST /simple_forms_api/v1/simple_forms': mockSubmit,
};

Expand Down
Loading

0 comments on commit 2b3983b

Please sign in to comment.