[
{"name": "a primary submit button, GOV.UK's default", "args": [{"id": "save", "children": "Save and continue"}], "expect": ""},
{"name": "no id given, none rendered", "args": [{"children": "Continue"}], "expect": ""},
{"name": "a secondary button", "args": [{"id": "find", "variant": "secondary", "type": "button", "children": "Find address"}], "expect": ""},
{"name": "a warning button for a destructive action", "args": [{"id": "delete", "variant": "warning", "children": "Delete account"}], "expect": ""},
{"name": "primary named explicitly has no modifier", "args": [{"id": "pay", "variant": "primary", "children": "Pay"}], "expect": ""},
{"name": "a reset button", "args": [{"id": "clear", "type": "reset", "variant": "secondary", "children": "Clear"}], "expect": ""},
{"name": "name and value say which submit button was pressed", "args": [{"id": "add", "name": "action", "value": "add-another", "variant": "secondary", "children": "Add another"}], "expect": ""},
{"name": "disabled as GOV.UK renders it: the attribute and aria-disabled", "args": [{"id": "send", "disabled": true, "children": "Disabled button"}], "expect": ""},
{"name": "loading stays enabled and focusable, aria-disabled, with its loading text", "args": [{"id": "send", "loading": true, "loadingText": "Sending", "children": "Confirm and send"}], "expect": ""},
{"name": "loading without loading text keeps the children", "args": [{"id": "send", "loading": true, "children": "Confirm and send"}], "expect": ""},
{"name": "loading text is ignored when not loading", "args": [{"id": "send", "loading": false, "disabled": false, "loadingText": "Sending", "children": "Confirm and send"}], "expect": ""},
{"name": "a class name comes after the modifiers", "args": [{"id": "x", "variant": "warning", "loading": true, "className": "wide", "children": "Remove"}], "expect": ""},
{"name": "text is escaped", "args": [{"id": "x", "children": "Save & ", "value": "a\"b"}], "expect": ""}
]