[
{"name": "a label and a select, submitted under its id", "args": [{"id": "sort", "label": "Sort by", "options": [{"value": "published", "label": "Recently published"}, {"value": "updated", "label": "Recently updated"}]}], "expect": "
"},
{"name": "a controlled value selects its option", "args": [{"id": "sort", "label": "Sort by", "value": "updated", "options": [{"value": "published", "label": "Recently published"}, {"value": "updated", "label": "Recently updated"}, {"value": "views", "label": "Most views"}]}], "expect": ""},
{"name": "a default value selects its option too, under a name of its own", "args": [{"id": "s1", "name": "sortBy", "label": "Sort by", "defaultValue": "views", "options": [{"value": "updated", "label": "Recently updated"}, {"value": "views", "label": "Most views"}]}], "expect": ""},
{"name": "a placeholder is the first option, with the value \"\"", "args": [{"id": "country", "label": "Country", "placeholder": "Choose a country", "autoComplete": "country", "options": [{"value": "GB", "label": "United Kingdom"}, {"value": "IE", "label": "Ireland"}]}], "expect": ""},
{"name": "a value of \"\" selects the placeholder", "args": [{"id": "country", "label": "Country", "placeholder": "Choose a country", "value": "", "required": true, "options": [{"value": "GB", "label": "United Kingdom"}]}], "expect": ""},
{"name": "hint and error: the select is described by both, hint first, and invalid", "args": [{"id": "location", "label": "Choose location", "hint": "This can be different to where you went before", "error": "Select a location", "placeholder": "", "options": [{"value": "eastmidlands", "label": "East Midlands"}, {"value": "london", "label": "London"}]}], "expect": "
This can be different to where you went before
Error: Select a location
"},
{"name": "a hint alone describes the select", "args": [{"id": "t", "label": "Title", "hint": "Optional", "options": [{"value": "mr", "label": "Mr"}, {"value": "ms", "label": "Ms"}]}], "expect": "