{
"component": "error-message",
"fixtures": [
{
"name": "default",
"options": {
"text": "Error message about full name goes here"
},
"html": "\n Error: Error message about full name goes here\n",
"hidden": false
},
{
"name": "id",
"options": {
"id": "my-error-message-id",
"text": "This is an error message"
},
"html": "\n Error: This is an error message\n",
"hidden": true
},
{
"name": "classes",
"options": {
"classes": "custom-class",
"text": "This is an error message"
},
"html": "\n Error: This is an error message\n",
"hidden": true
},
{
"name": "html as text",
"options": {
"text": "Unexpected > in body"
},
"html": "\n Error: Unexpected > in body\n",
"hidden": true
},
{
"name": "html",
"options": {
"html": "Unexpected bold text in body copy"
},
"html": "\n Error: Unexpected bold text in body copy\n",
"hidden": true
},
{
"name": "attributes",
"options": {
"text": "This is an error message",
"attributes": {
"data-test": "attribute",
"id": "my-error-message"
}
},
"html": "\n Error: This is an error message\n",
"hidden": true
},
{
"name": "with visually hidden text",
"options": {
"text": "Rhowch eich enw llawn",
"visuallyHiddenText": "Gwall"
},
"html": "\n Gwall: Rhowch eich enw llawn\n",
"hidden": true
},
{
"name": "visually hidden text removed",
"options": {
"text": "There is an error on line 42",
"visuallyHiddenText": false
},
"html": "\n There is an error on line 42\n",
"hidden": true
}
]
}