-
Notifications
You must be signed in to change notification settings - Fork 5
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
ITSASU-3596 - Build + Integrate new start date limit question and flow #1492
Conversation
|
conf/messages
Outdated
individual.foreign-property.start-date.hint = For example, 27 9 {0}. | ||
|
||
# Foreign Property Start Date Errors | ||
error.individual.foreign-property.day-month-year.empty = Enter the date your foreign property business started trading |
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.
Could you update the following English error messages please:
- all empty
- max date
- min date
- year must be 4 numbers
The welsh looks OK.
@@ -14,9 +14,10 @@ | |||
* limitations under the License. | |||
*@ | |||
|
|||
@import forms.individual.business.OverseasPropertyStartDateForm._ | |||
@import forms.individual.business.PropertyStartDateForm._ |
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.
Imported the UK Property start date form here
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.
Updated
} | ||
} | ||
} | ||
"return a form error" when { |
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.
Could add tests for min and max date
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.
Added tests
@@ -45,10 +45,10 @@ class OverseasPropertyStartDateViewSpec extends ViewSpec { | |||
val backUrl: String = testBackUrl | |||
val action: Call = testCall | |||
val taxYearEnd: Int = 2020 | |||
val testError: FormError = FormError("startDate", "error.overseas.property.day-month-year.empty") |
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.
I take it there was 1 set of messages for both ind/agent? Will be good to let Yonis know the message keys are changing :)
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.
Ah, not quite, this was updated incorrectly, I mass updated it and it caught this which was wrong to begin with, there are agent specific messages for this, I'll convert this to the agent message
31379b9
to
61e0561
Compare
61e0561
to
336c550
Compare
No description provided.