created:3/5/2021
updated:3/5/2021
loc
6
comments
67%
passed
10
coverage
100%

ExternalLink

avatar of atanasster

Anchor link to an external url, adds the default

target="_blank" rel="noopener noreferrer"
props.

Test data

select
#
href
1
https://joshua.us
2
https://lurline.us
3
http://bernadette.info
4
http://chance.info
5
https://effie.us
5 data rows

Controls

Name
Description
Default
Controls
href
string
-

Tests results

Status
Full name
Title
Time(ms)
ExternalLink.test.ts(10 tests)
passed
ExternalLink > overview > 1
snapshot
72
passed
ExternalLink > overview > 1
accessibility
120
passed
ExternalLink > overview > 2
snapshot
43
passed
ExternalLink > overview > 2
accessibility
100
passed
ExternalLink > overview > 3
snapshot
55
passed
ExternalLink > overview > 3
accessibility
130
passed
ExternalLink > overview > 4
snapshot
55
passed
ExternalLink > overview > 4
accessibility
131
passed
ExternalLink > overview > 5
snapshot
59
total 10 tests

Tests coverage

Kind
Total
Covered
Skipped
%
ExternalLink.tsx
lines
4
4
0
100%
functions
1
1
0
100%
statements
5
5
0
100%
branches
0
0
0
100%

A11y tests

 
id
description
color-contrast

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

identical-links-same-purpose

Ensure that links with the same accessible name serve a similar purpose...

link-name

Ensures links have discernible text...