Remove right panel toggling behaviour on room header buttons (#100)
* Remove right panel toggling behaviour on room header buttons Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove stale test Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
81bb56ae2b
commit
33c900e307
6 changed files with 11 additions and 43 deletions
|
@ -217,22 +217,4 @@ describe("RightPanelStore", () => {
|
|||
await viewRoom("!1:example.org");
|
||||
expect(store.currentCardForRoom("!1:example.org").phase).toEqual(RightPanelPhases.RoomMemberList);
|
||||
});
|
||||
|
||||
it("showOrHidePhase works as expected", async () => {
|
||||
await viewRoom("!1:example.org");
|
||||
|
||||
// Open the memberlist panel
|
||||
store.showOrHidePanel(RightPanelPhases.RoomMemberList);
|
||||
expect(store.isOpenForRoom("!1:example.org")).toEqual(true);
|
||||
expect(store.currentCardForRoom("!1:example.org").phase).toEqual(RightPanelPhases.RoomMemberList);
|
||||
|
||||
// showOrHide with RoomSummary should now close the panel
|
||||
store.showOrHidePanel(RightPanelPhases.RoomSummary);
|
||||
expect(store.isOpenForRoom("!1:example.org")).toEqual(false);
|
||||
|
||||
// showOrHide with RoomSummary should now open the panel
|
||||
store.showOrHidePanel(RightPanelPhases.RoomSummary);
|
||||
expect(store.isOpenForRoom("!1:example.org")).toEqual(true);
|
||||
expect(store.currentCardForRoom("!1:example.org").phase).toEqual(RightPanelPhases.RoomSummary);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue