Align RoomSummaryCard styles with Figma (#12793)
* Extract useIsVideoRoom hook Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Align RoomSummaryCard styles with Figma Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update screenshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update screenshot Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b6addb4118
commit
a38a5161ef
13 changed files with 304 additions and 273 deletions
|
@ -271,7 +271,7 @@ describe("<RoomSummaryCard />", () => {
|
|||
mocked(settingsHooks.useFeatureEnabled).mockImplementation((feature) => feature === "feature_pinning");
|
||||
const { getByText } = getComponent();
|
||||
|
||||
expect(getByText("Pinned")).toBeInTheDocument();
|
||||
expect(getByText("Pinned messages")).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -279,14 +279,14 @@ describe("<RoomSummaryCard />", () => {
|
|||
it("renders poll history option", () => {
|
||||
const { getByText } = getComponent();
|
||||
|
||||
expect(getByText("Poll history")).toBeInTheDocument();
|
||||
expect(getByText("Polls")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("opens poll history dialog on button click", () => {
|
||||
const permalinkCreator = new RoomPermalinkCreator(room);
|
||||
const { getByText } = getComponent({ permalinkCreator });
|
||||
|
||||
fireEvent.click(getByText("Poll history"));
|
||||
fireEvent.click(getByText("Polls"));
|
||||
|
||||
expect(Modal.createDialog).toHaveBeenCalledWith(PollHistoryDialog, {
|
||||
room,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue