Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 78e7829

Browse files
authored
Update PollCreateDialog-test to snapshot the html and not react tree (#7712)
1 parent 226ccfc commit 78e7829

File tree

2 files changed

+4
-2356
lines changed

2 files changed

+4
-2356
lines changed

test/components/views/elements/PollCreateDialog-test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe("PollCreateDialog", () => {
4242
const dialog = mount(
4343
<PollCreateDialog room={createRoom()} onFinished={jest.fn()} />,
4444
);
45-
expect(dialog).toMatchSnapshot();
45+
expect(dialog.html()).toMatchSnapshot();
4646
});
4747

4848
it("renders a question and some options", () => {
@@ -61,7 +61,7 @@ describe("PollCreateDialog", () => {
6161
changeValue(dialog, "Option 2", "The question is meaningless");
6262
dialog.find("div.mx_PollCreateDialog_addOption").simulate("click");
6363
changeValue(dialog, "Option 3", "Mu");
64-
expect(dialog).toMatchSnapshot();
64+
expect(dialog.html()).toMatchSnapshot();
6565
});
6666

6767
it("doesn't allow submitting until there are options", () => {

0 commit comments

Comments
 (0)