mirror of https://github.com/vector-im/riot-web
Fix broken jest tests
parent
e6e0360608
commit
41e20e5038
|
@ -124,7 +124,7 @@ describe("RightPanel", () => {
|
||||||
await waitFor(() => expect(screen.queryByTestId("spinner")).not.toBeInTheDocument());
|
await waitFor(() => expect(screen.queryByTestId("spinner")).not.toBeInTheDocument());
|
||||||
|
|
||||||
// room one will be in the MemberList phase - confirm this is rendered
|
// room one will be in the MemberList phase - confirm this is rendered
|
||||||
expect(container.getElementsByClassName("mx_MemberList")).toHaveLength(1);
|
expect(container.getElementsByClassName("mx_MemberListView")).toHaveLength(1);
|
||||||
|
|
||||||
// wait for RPS room 2 updates to fire, then rerender
|
// wait for RPS room 2 updates to fire, then rerender
|
||||||
const _rpsUpdated = waitForRpsUpdate();
|
const _rpsUpdated = waitForRpsUpdate();
|
||||||
|
@ -146,7 +146,7 @@ describe("RightPanel", () => {
|
||||||
// the correct right panel state for whichever room we are showing, so we
|
// the correct right panel state for whichever room we are showing, so we
|
||||||
// confirm we do not have the MemberList class on the page and that we have
|
// confirm we do not have the MemberList class on the page and that we have
|
||||||
// the expected room title
|
// the expected room title
|
||||||
expect(container.getElementsByClassName("mx_MemberList")).toHaveLength(0);
|
expect(container.getElementsByClassName("mx_MemberListView")).toHaveLength(0);
|
||||||
expect(screen.getByRole("heading", { name: "r2" })).toBeInTheDocument();
|
expect(screen.getByRole("heading", { name: "r2" })).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,7 +14,7 @@ exports[`<MainSplit/> renders 1`] = `
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mx_RightPanel_ResizeWrapper"
|
class="mx_RightPanel_ResizeWrapper"
|
||||||
style="position: relative; user-select: auto; width: 320px; height: 100%; max-width: 50%; min-width: 264px; box-sizing: border-box; flex-shrink: 0;"
|
style="position: relative; user-select: auto; width: 320px; height: 100%; max-width: 50%; min-width: 320px; box-sizing: border-box; flex-shrink: 0;"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
Right panel
|
Right panel
|
||||||
|
@ -44,7 +44,7 @@ exports[`<MainSplit/> respects defaultSize prop 1`] = `
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mx_RightPanel_ResizeWrapper"
|
class="mx_RightPanel_ResizeWrapper"
|
||||||
style="position: relative; user-select: auto; width: 500px; height: 100%; max-width: 50%; min-width: 264px; box-sizing: border-box; flex-shrink: 0;"
|
style="position: relative; user-select: auto; width: 500px; height: 100%; max-width: 50%; min-width: 320px; box-sizing: border-box; flex-shrink: 0;"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
Right panel
|
Right panel
|
||||||
|
|
|
@ -1994,7 +1994,7 @@ exports[`RoomView video rooms should render joined video room view 1`] = `
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mx_RightPanel_ResizeWrapper"
|
class="mx_RightPanel_ResizeWrapper"
|
||||||
style="position: relative; user-select: auto; width: 420px; height: 100%; max-width: 50%; min-width: 264px; box-sizing: border-box; flex-shrink: 0;"
|
style="position: relative; user-select: auto; width: 420px; height: 100%; max-width: 50%; min-width: 320px; box-sizing: border-box; flex-shrink: 0;"
|
||||||
>
|
>
|
||||||
<aside
|
<aside
|
||||||
class="mx_RightPanel"
|
class="mx_RightPanel"
|
||||||
|
|
Loading…
Reference in New Issue