MOBILE-3947 signup: Fix input error default set
parent
33f1cefad1
commit
b313555ebe
|
@ -64,17 +64,19 @@ export class CoreInputErrorsComponent implements OnInit, OnChanges {
|
||||||
* Initialize some common errors if they aren't set.
|
* Initialize some common errors if they aren't set.
|
||||||
*/
|
*/
|
||||||
protected initErrorMessages(): void {
|
protected initErrorMessages(): void {
|
||||||
|
// Set default error messages.
|
||||||
this.errorMessages = {
|
this.errorMessages = {
|
||||||
required: this.errorMessages.required || 'core.required',
|
required: 'core.required',
|
||||||
email: this.errorMessages.email || 'core.login.invalidemail',
|
email: 'core.login.invalidemail',
|
||||||
date: this.errorMessages.date || 'core.login.invaliddate',
|
date: 'core.login.invaliddate',
|
||||||
datetime: this.errorMessages.datetime || 'core.login.invaliddate',
|
datetime: 'core.login.invaliddate',
|
||||||
datetimelocal: this.errorMessages.datetimelocal || 'core.login.invaliddate',
|
datetimelocal: 'core.login.invaliddate',
|
||||||
time: this.errorMessages.time || 'core.login.invalidtime',
|
time: 'core.login.invalidtime',
|
||||||
url: this.errorMessages.url || 'core.login.invalidurl',
|
url: 'core.login.invalidurl',
|
||||||
// Set empty values by default, the default error messages will be built in the template when needed.
|
// Set empty values by default, the default error messages will be built in the template when needed.
|
||||||
max: this.errorMessages.max || '',
|
max: '',
|
||||||
min: this.errorMessages.min || '',
|
min: '',
|
||||||
|
...this.errorMessages,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.errorMessages.requiredTrue = this.errorMessages.required;
|
this.errorMessages.requiredTrue = this.errorMessages.required;
|
||||||
|
|
|
@ -18,7 +18,6 @@ Feature: Test signup in app
|
||||||
And I should find "These are the authentication instructions." in the app
|
And I should find "These are the authentication instructions." in the app
|
||||||
But I should not find "Create new account" in the app
|
But I should not find "Create new account" in the app
|
||||||
|
|
||||||
@ionic7_failure
|
|
||||||
Scenario: Basic signup
|
Scenario: Basic signup
|
||||||
When I launch the app
|
When I launch the app
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue