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