-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(fix): fix some random tests and add snapshot
- Loading branch information
marc.sirisak
committed
Oct 10, 2024
1 parent
6331851
commit 3eaef58
Showing
7 changed files
with
237 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
test/unit-tests/tchap/components/views/rooms/__snapshots__/RoomHeaders-test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`RoomHeader should render as expected 1`] = ` | ||
<div> | ||
<header | ||
class="mx_Flex mx_RoomHeader light-panel" | ||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-3x);" | ||
> | ||
<div | ||
class="mx_DecoratedRoomAvatar mx_DecoratedRoomAvatar_cutout" | ||
> | ||
<div | ||
class="mx_DecoratedRoomAvatar_positionedParent" | ||
> | ||
<span | ||
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61" | ||
data-color="3" | ||
data-testid="avatar-img" | ||
data-type="round" | ||
role="presentation" | ||
style="--cpd-avatar-size: 40px;" | ||
> | ||
! | ||
</span> | ||
<div | ||
class="mx_DecoratedRoomAvatar_icon mx_DecoratedRoomAvatar_icon_forum" | ||
tabindex="0" | ||
/> | ||
</div> | ||
</div> | ||
<button | ||
aria-label="Room info" | ||
class="mx_RoomHeader_infoWrapper" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_Box mx_RoomHeader_info mx_Box--flex" | ||
style="--mx-box-flex: 1;" | ||
> | ||
<div | ||
aria-level="1" | ||
class="_typography_yh5dq_162 _font-body-lg-semibold_yh5dq_83 mx_RoomHeader_heading" | ||
dir="auto" | ||
role="heading" | ||
> | ||
<span | ||
class="mx_RoomHeader_truncated mx_lineClamp" | ||
> | ||
!1:example.org | ||
</span> | ||
</div> | ||
</div> | ||
</button> | ||
<div | ||
class="mx_Flex" | ||
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-2x);" | ||
> | ||
<button | ||
aria-label="Room info" | ||
class="_icon-button_bh2qc_17" | ||
role="button" | ||
style="--cpd-icon-button-size: 32px;" | ||
tabindex="0" | ||
> | ||
<div | ||
class="_indicator-icon_133tf_26" | ||
style="--cpd-icon-button-size: 100%;" | ||
> | ||
<div /> | ||
</div> | ||
</button> | ||
</div> | ||
<div | ||
class="_typography_yh5dq_162 _font-body-sm-medium_yh5dq_50" | ||
> | ||
<div | ||
aria-label="0 members" | ||
class="mx_AccessibleButton mx_FacePile" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="_stacked-avatars_mcap2_111" | ||
/> | ||
0 | ||
</div> | ||
</div> | ||
</header> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.