[ { "name": "a legend and the inputs", "args": [{ "id": "address", "legend": "What is your address?", "children": "[inputs]" }], "expect": "
" }, { "name": "a hint describes the whole group", "args": [{ "id": "dob", "legend": "What is your date of birth?", "hint": "For example, 31 3 1980", "children": "[inputs]" }], "expect": "" }, { "name": "an error marks the group and describes it", "args": [{ "id": "contact", "legend": "How would you like to be contacted?", "error": "Select how you would like to be contacted", "children": "[inputs]" }], "expect": "" }, { "name": "hint then error, both described, hint first", "args": [{ "id": "dob", "legend": "Date of birth", "hint": "For example, 31 3 1980", "error": "Date of birth must be in the past", "children": "[inputs]" }], "expect": "" }, { "name": "the legend as the page heading holds an h1", "args": [{ "id": "where", "legend": "Where do you live?", "isPageHeading": true, "children": "[inputs]" }], "expect": "" }, { "name": "isPageHeading false is an ordinary legend", "args": [{ "id": "where", "legend": "Where do you live?", "isPageHeading": false }], "expect": "" }, { "name": "a class name joins the wrapper's, after the error class", "args": [{ "id": "a", "legend": "Address", "error": "Enter your address", "className": "fune-field--wide" }], "expect": "" }, { "name": "empty hint and null error show nothing", "args": [{ "id": "a", "legend": "Address", "hint": "", "error": null, "children": "[inputs]" }], "expect": "" }, { "name": "the legend is escaped", "args": [{ "id": "a", "legend": "Terms &