diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 23:27:44 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 23:27:44 +0900 |
commit | 1f014295a54f1e16b8bd94da729fb0afd143f7fe (patch) | |
tree | e120a8f58403e6a24477ea5e1ab1b19a630fa43b /src/settings/components | |
parent | b88c0db89d439fe7c4385d5a6f087012557d4c47 (diff) |
Fix component test
Diffstat (limited to 'src/settings/components')
-rw-r--r-- | src/settings/components/form/BlacklistForm.tsx | 4 | ||||
-rw-r--r-- | src/settings/components/ui/TextArea.tsx | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/settings/components/form/BlacklistForm.tsx b/src/settings/components/form/BlacklistForm.tsx index 4d794f4..d301f2c 100644 --- a/src/settings/components/form/BlacklistForm.tsx +++ b/src/settings/components/form/BlacklistForm.tsx @@ -40,13 +40,13 @@ class BlacklistForm extends React.Component<Props> { render() { return ( <> - <Grid> + <Grid role="list"> {this.props.value.items.map((item, index) => { if (item.partial) { return null; } return ( - <GridRow key={index}> + <GridRow role="listitem" key={index}> <GridCell> <Input data-index={index} diff --git a/src/settings/components/ui/TextArea.tsx b/src/settings/components/ui/TextArea.tsx index 58b7bd3..9dcd5be 100644 --- a/src/settings/components/ui/TextArea.tsx +++ b/src/settings/components/ui/TextArea.tsx @@ -46,7 +46,9 @@ const TextArea: React.FC<Props> = (props) => { <Container> <Label htmlFor={props.id}>{props.label}</Label> <ErrorableTextArea hasError={hasError} onChange={onChange} {...pp} /> - {hasError ? <ErrorMessage>{props.error}</ErrorMessage> : null} + {hasError ? ( + <ErrorMessage role="alert">{props.error}</ErrorMessage> + ) : null} </Container> ); }; |