2022-05-27 09:13:50 +02:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<AccessibleButton /> renders a button element 1`] = `
|
2022-12-28 11:40:34 +01:00
|
|
|
<DocumentFragment>
|
2022-05-27 09:13:50 +02:00
|
|
|
<button
|
2022-12-28 11:40:34 +01:00
|
|
|
class="mx_AccessibleButton"
|
2022-05-27 09:13:50 +02:00
|
|
|
role="button"
|
2022-12-28 11:40:34 +01:00
|
|
|
tabindex="0"
|
2022-05-27 09:13:50 +02:00
|
|
|
>
|
|
|
|
i am a button
|
|
|
|
</button>
|
2022-12-28 11:40:34 +01:00
|
|
|
</DocumentFragment>
|
2022-05-27 09:13:50 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<AccessibleButton /> renders div with role button by default 1`] = `
|
2022-12-28 11:40:34 +01:00
|
|
|
<DocumentFragment>
|
2022-05-27 09:13:50 +02:00
|
|
|
<div
|
2022-12-28 11:40:34 +01:00
|
|
|
class="mx_AccessibleButton"
|
2022-05-27 09:13:50 +02:00
|
|
|
role="button"
|
2022-12-28 11:40:34 +01:00
|
|
|
tabindex="0"
|
2022-05-27 09:13:50 +02:00
|
|
|
>
|
|
|
|
i am a button
|
|
|
|
</div>
|
2022-12-28 11:40:34 +01:00
|
|
|
</DocumentFragment>
|
2022-05-27 09:13:50 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<AccessibleButton /> renders with correct classes when button has kind 1`] = `
|
2022-12-28 11:40:34 +01:00
|
|
|
<DocumentFragment>
|
2022-05-27 09:13:50 +02:00
|
|
|
<div
|
2022-12-28 11:40:34 +01:00
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
2022-05-27 09:13:50 +02:00
|
|
|
role="button"
|
2022-12-28 11:40:34 +01:00
|
|
|
tabindex="0"
|
2022-05-27 09:13:50 +02:00
|
|
|
>
|
|
|
|
i am a button
|
|
|
|
</div>
|
2022-12-28 11:40:34 +01:00
|
|
|
</DocumentFragment>
|
2022-05-27 09:13:50 +02:00
|
|
|
`;
|