-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VATEAM-91741: Normalize Identification Information pattern output (#2274
) * Add Identification Information fragment * Import identificationInformation fragment into digitalForm fragment * Extract Identification Information fields * Fix imports
- Loading branch information
1 parent
52edb57
commit 195a33f
Showing
6 changed files
with
79 additions
and
9 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
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
14 changes: 14 additions & 0 deletions
14
...build/drupal/static-data-files/digitalForm/fragments/identificationInformation.graphql.js
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,14 @@ | ||
/* | ||
* | ||
* The "Identification Information" Digital Form pattern. | ||
* | ||
* Pattern documentation: | ||
* https://design.va.gov/patterns/ask-users-for/social-security-number | ||
* | ||
*/ | ||
module.exports = ` | ||
fragment identificationInformation on ParagraphDigitalFormIdentificationInfo { | ||
fieldTitle | ||
fieldIncludeVeteranSService | ||
} | ||
`; |
15 changes: 15 additions & 0 deletions
15
...al/static-data-files/digitalForm/fragments/identificationInformation.graphql.unit.spec.js
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,15 @@ | ||
/* eslint-disable @department-of-veterans-affairs/axe-check-required */ | ||
|
||
import { expect } from 'chai'; | ||
import identificationInformation from './identificationInformation.graphql'; | ||
|
||
describe('identificationInformation fragment', () => { | ||
it('includes fieldTitle', () => { | ||
expect(identificationInformation).to.have.string('fieldTitle'); | ||
}); | ||
it('includes fieldIncludeVeteranSService', () => { | ||
expect(identificationInformation).to.have.string( | ||
'fieldIncludeVeteranSService', | ||
); | ||
}); | ||
}); |
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