created:3/5/2021
updated:3/5/2021
loc
24
comments
13%
passed
2
coverage
67%

ComponentJSX

avatar of atanasster

Displays external dependencies for a component

Tests results

Status
Full name
Title
Time(ms)
ComponentJSX.test.ts(2 tests)
passed
ComponentJSX > overview
snapshot
206
passed
ComponentJSX > overview
accessibility
357
total 2 tests

Tests coverage

Kind
Total
Covered
Skipped
%
ComponentJSX.tsx
lines
13
12
0
92.3%
functions
2
2
0
100%
statements
14
13
0
92.85%
branches
9
6
0
66.66%

A11y tests

<Button
refid
/>
Button
from"./Button"
 
id
description
aria-allowed-attr

Ensures ARIA attributes are allowed for an element's role...

aria-allowed-role

Ensures role attribute has an appropriate value for the element...

aria-required-attr

Ensures elements with ARIA roles have all required ARIA attributes...

aria-required-children

Ensures elements with an ARIA role that require child roles contain them...

aria-required-parent

Ensures elements with an ARIA role that require parent roles are contained by them...

aria-roles

Ensures all elements with a role attribute use a valid value...

aria-valid-attr-value

Ensures all ARIA attributes have valid values...

aria-valid-attr

Ensures attributes that begin with aria- are valid ARIA attributes...

avoid-inline-spacing

Ensure that text spacing set through style attributes can be adjusted with custom stylesheets...

color-contrast

Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds...

duplicate-id-aria

Ensures every id attribute value used in ARIA and in labels is unique...

duplicate-id

Ensures every id attribute value is unique...

nested-interactive

Ensure controls are not nested as they are not announced by screen readers...

tabindex

Ensures tabindex attribute values are not greater than 0...

Viewport

<Button
refid
/>
Button
from"./Button"
320px
<Button
refid
/>
Button
from"./Button"
375px
<Button
refid
/>
Button
from"./Button"
768px
<Button
refid
/>
Button
from"./Button"
1024px