remove the disabled link test
This commit is contained in:
parent
9f47fb5fca
commit
985375ef02
2 changed files with 0 additions and 41 deletions
|
@ -28,11 +28,4 @@ describe("<ExternalLink />", () => {
|
||||||
);
|
);
|
||||||
expect(comp.asFragment()).toMatchSnapshot();
|
expect(comp.asFragment()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("render as disabled", () => {
|
|
||||||
const comp = render(
|
|
||||||
<ExternalLink href="http://hello.nl/" title="Disabled link" isDisabled />
|
|
||||||
);
|
|
||||||
expect(comp.asFragment()).toMatchSnapshot();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -15,40 +15,6 @@ exports[`<ExternalLink /> render as application 1`] = `
|
||||||
</DocumentFragment>
|
</DocumentFragment>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`<ExternalLink /> render as disabled 1`] = `
|
|
||||||
<DocumentFragment>
|
|
||||||
<a
|
|
||||||
aria-disabled="true"
|
|
||||||
class="pf-c-button pf-m-link pf-m-disabled"
|
|
||||||
data-ouia-component-id="4"
|
|
||||||
data-ouia-component-type="PF4/Button"
|
|
||||||
data-ouia-safe="true"
|
|
||||||
href="http://hello.nl/"
|
|
||||||
tabindex="-1"
|
|
||||||
>
|
|
||||||
Disabled link
|
|
||||||
<span
|
|
||||||
class="pf-c-button__icon pf-m-end"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
fill="currentColor"
|
|
||||||
height="1em"
|
|
||||||
role="img"
|
|
||||||
style="vertical-align: -0.125em;"
|
|
||||||
viewBox="0 0 512 512"
|
|
||||||
width="1em"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"
|
|
||||||
transform=""
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</DocumentFragment>
|
|
||||||
`;
|
|
||||||
|
|
||||||
exports[`<ExternalLink /> render with internal url 1`] = `
|
exports[`<ExternalLink /> render with internal url 1`] = `
|
||||||
<DocumentFragment>
|
<DocumentFragment>
|
||||||
<a
|
<a
|
||||||
|
|
Loading…
Reference in a new issue