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

Update PollCreateDialog-test to snapshot the html and not react tree #7712

Merged
merged 2 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/components/views/elements/PollCreateDialog-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("PollCreateDialog", () => {
const dialog = mount(
<PollCreateDialog room={createRoom()} onFinished={jest.fn()} />,
);
expect(dialog).toMatchSnapshot();
expect(dialog.html()).toMatchSnapshot();
});

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

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