-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(per): Ensure add another responses are rendered correctly #949
Conversation
@@ -611,7 +611,7 @@ describe('Presenters', function () { | |||
{ | |||
value: test.value, | |||
valueType: test.valueType, | |||
responded: false, | |||
responded: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worthwhile to have a test for the false
value too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this instance it should never actually be false
. That was the issue. When this presenter is called, for the add another fields it should always set responded to true
so that the value gets displayed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on heroku app and looks good, thanks for the quick fix
This passes a responded property to the framework response component for add another fields. The framework response component was updated to know about both responded and prefilled and now requires that the value be passed as true in order to render the value.
10d22d8
to
8d5794e
Compare
Code Climate has analyzed commit 8d5794e and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (90% is the threshold). This pull request will bring the total coverage in the repository to 97.8% (0.0% change). View more on Code Climate. |
Proposed changes
What changed
This passes a responded property to the framework response component
for add another fields.
Why did it change
The framework response component was updated to know about both
responded and prefilled and now requires that the value be passed
as true in order to render the value.
Issue tracking
Checklists
Testing
Automated testing
Manual testing
Has been tested in the following browsers:
Environment variables
Other considerations
Commit messages with a
fix
orfeat
type are automatically used to generate the changelog andGitHub release notes during the release task. Please make sure they will read well on their own in a
summary of changes and that the commit body gives a more detailed description of those changes if necessary.