This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 833
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing metaspace notification badges
- Loading branch information
Showing
3 changed files
with
82 additions
and
5 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
49 changes: 49 additions & 0 deletions
49
test/components/views/spaces/__snapshots__/SpaceTreeLevel-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,49 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`SpaceButton metaspace should render notificationState if one is provided 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
aria-label="People" | ||
class="mx_AccessibleButton mx_SpaceButton mx_SpaceButton_active" | ||
data-testid="create-space-button" | ||
role="button" | ||
tabindex="-1" | ||
> | ||
<div | ||
class="mx_SpaceButton_selectionWrapper" | ||
> | ||
<div | ||
class="mx_SpaceButton_avatarWrapper" | ||
> | ||
<div | ||
class="mx_SpaceButton_avatarPlaceholder" | ||
> | ||
<div | ||
class="mx_SpaceButton_icon" | ||
/> | ||
</div> | ||
<div | ||
class="mx_SpacePanel_badgeContainer" | ||
> | ||
<div | ||
class="mx_AccessibleButton mx_NotificationBadge mx_NotificationBadge_visible mx_NotificationBadge_2char" | ||
role="button" | ||
tabindex="-1" | ||
> | ||
<span | ||
class="mx_NotificationBadge_count" | ||
> | ||
8 | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<span | ||
class="mx_SpaceButton_name" | ||
> | ||
People | ||
</span> | ||
</div> | ||
</div> | ||
</DocumentFragment> | ||
`; |