mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-03 21:51:06 +00:00
Add user status in user info right panel card (#34212)
* Add user status in user info right panel card Adds a very simple view component to do so, which will be reused in the DM room header. Also comment the other status view so the difference is clear. * Add screenshot * Add test * Rename snapshot
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright 2026 Element Creations Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
import { composeStories } from "@storybook/react-vite";
|
||||
import React from "react";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { render, screen } from "@test-utils";
|
||||
|
||||
import * as stories from "./StatusTextView.stories";
|
||||
|
||||
const { Default } = composeStories(stories);
|
||||
|
||||
describe("StatusTextView", () => {
|
||||
it("should display the status text and emoji", () => {
|
||||
render(<Default />);
|
||||
expect(screen.getByText("Flamboyant")).toBeInTheDocument();
|
||||
expect(screen.getByText("🦩")).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user