mirror of
https://github.com/google/nomulus
synced 2026-09-20 06:54:43 +00:00
Fix registrar console to show type-less registrar contacts
RegistrarContacts are allowed to have no "types" specified (they can also have multiple types). However, the registrar console displays the contacts for the logged-in registrar grouped by type into sections, and contacts with no type were simply being omitted from the listing, which was confusing because you can't even log into the console unless your email is listed as a contact, and yet you might then visit the contact settings page and see (apparently) no configured contacts. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152302159
This commit is contained in:
@@ -73,6 +73,8 @@ function tearDown() {
|
||||
|
||||
|
||||
function testCollectionView() {
|
||||
testContactWithoutType = createTestContact('notype@example.com');
|
||||
testContactWithoutType.types = '';
|
||||
registry.registrar.ConsoleTestUtil.visit(test, {
|
||||
path: 'contact-settings',
|
||||
xsrfToken: test.testXsrfToken,
|
||||
@@ -86,11 +88,12 @@ function testCollectionView() {
|
||||
status: 'SUCCESS',
|
||||
message: 'OK',
|
||||
results: [{
|
||||
contacts: [testContact]
|
||||
contacts: [testContact, testContactWithoutType]
|
||||
}]
|
||||
}
|
||||
);
|
||||
assertEquals(1, $('admin-contacts').childNodes.length);
|
||||
assertEquals(1, $('other-contacts').childNodes.length);
|
||||
// XXX: Needs more field testing.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user