mirror of
https://github.com/google/nomulus
synced 2026-09-18 22:14:23 +00:00
Provide better error message for abuse contact phone number
Make it clear that all the user need to do to rectify is to provide a phone number ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=153191178
This commit is contained in:
@@ -125,8 +125,8 @@ public class ContactSettingsTest extends RegistrarSettingsActionTestCase {
|
||||
"op", "update",
|
||||
"args", reqJson));
|
||||
assertThat(response).containsEntry("status", "ERROR");
|
||||
assertThat(response).containsEntry("message", "At least one "
|
||||
+ RegistrarContact.Type.TECH.getDisplayName() + " contact must have a phone number");
|
||||
assertThat(response).containsEntry("message", "Please provide a phone number for at least one "
|
||||
+ RegistrarContact.Type.TECH.getDisplayName() + " contact");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -149,7 +149,7 @@ public class ContactSettingsTest extends RegistrarSettingsActionTestCase {
|
||||
"op", "update",
|
||||
"args", reqJson));
|
||||
assertThat(response).containsEntry("status", "ERROR");
|
||||
assertThat(response).containsEntry("message", "At least one "
|
||||
+ RegistrarContact.Type.ABUSE.getDisplayName() + " contact must have a phone number");
|
||||
assertThat(response).containsEntry("message", "Please provide a phone number for at least one "
|
||||
+ RegistrarContact.Type.ABUSE.getDisplayName() + " contact");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user