diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 11:15:53 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 12:50:31 +0900 |
commit | 8bfa19885bc84e5b75009b24050be8304d52d3b2 (patch) | |
tree | 35207302ae9c37b3e41a81ff0d6e09fcafeda4cb /src/console | |
parent | e4a9c831381a9c90ca0d44844d103b9c83a56c8d (diff) |
Fix e2e tests
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/components/console/CompletionItem.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/console/components/console/CompletionItem.tsx b/src/console/components/console/CompletionItem.tsx index 76db5b5..46cd95c 100644 --- a/src/console/components/console/CompletionItem.tsx +++ b/src/console/components/console/CompletionItem.tsx @@ -49,8 +49,12 @@ interface Props { const CompletionItem: React.FC<React.HTMLAttributes<HTMLElement> & Props> = ( props ) => ( - <Container icon={props.icon || ""} {...props}> - <Caption>{props.caption}</Caption> + <Container + icon={props.icon || ""} + aria-labelledby={`completion-item-${props.caption}`} + {...props} + > + <Caption id={`completion-item-${props.caption}`}>{props.caption}</Caption> <Description>{props.url}</Description> </Container> ); |