diff --git a/test/components/views/elements/PollCreateDialog-test.tsx b/test/components/views/elements/PollCreateDialog-test.tsx
index 38233a7e31..bec362638c 100644
--- a/test/components/views/elements/PollCreateDialog-test.tsx
+++ b/test/components/views/elements/PollCreateDialog-test.tsx
@@ -42,7 +42,7 @@ describe("PollCreateDialog", () => {
const dialog = mount(
,
);
- expect(dialog).toMatchSnapshot();
+ expect(dialog.html()).toMatchSnapshot();
});
it("renders a question and some options", () => {
@@ -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", () => {
diff --git a/test/components/views/elements/__snapshots__/PollCreateDialog-test.tsx.snap b/test/components/views/elements/__snapshots__/PollCreateDialog-test.tsx.snap
index 141a0ae258..8edc355883 100644
--- a/test/components/views/elements/__snapshots__/PollCreateDialog-test.tsx.snap
+++ b/test/components/views/elements/__snapshots__/PollCreateDialog-test.tsx.snap
@@ -1,2357 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`PollCreateDialog renders a blank poll 1`] = `
-
-
-
-
-
-
-
-
-
-
- }
- onActivation={[Function]}
- onDeactivation={[Function]}
- persistentFocus={false}
- returnFocus={[Function]}
- shards={Array []}
- sideCar={
- Object {
- "assignMedium": [Function],
- "assignSyncMedium": [Function],
- "options": Object {
- "async": true,
- "ssr": false,
- },
- "read": [Function],
- "useMedium": [Function],
- }
- }
- >
-
-
-
-
- }
- onActivation={[Function]}
- onDeactivation={[Function]}
- persistentFocus={false}
- returnFocus={[Function]}
- shards={Array []}
- sideCar={
- Object {
- "assignMedium": [Function],
- "assignSyncMedium": [Function],
- "options": Object {
- "async": true,
- "ssr": false,
- },
- "read": [Function],
- "useMedium": [Function],
- }
- }
- />
-
-
-
-
- Create poll
-
-
-
-
-
-
-
-
-
- Cancel
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
+exports[`PollCreateDialog renders a blank poll 1`] = `"
"`;
-exports[`PollCreateDialog renders a question and some options 1`] = `
-
-
-
-
-
-
-
-
-
-
- }
- onActivation={[Function]}
- onDeactivation={[Function]}
- persistentFocus={false}
- returnFocus={[Function]}
- shards={Array []}
- sideCar={
- Object {
- "assignMedium": [Function],
- "assignSyncMedium": [Function],
- "options": Object {
- "async": true,
- "ssr": false,
- },
- "read": [Function],
- "useMedium": [Function],
- }
- }
- >
-
-
-
-
- }
- onActivation={[Function]}
- onDeactivation={[Function]}
- persistentFocus={false}
- returnFocus={[Function]}
- shards={Array []}
- sideCar={
- Object {
- "assignMedium": [Function],
- "assignSyncMedium": [Function],
- "options": Object {
- "async": true,
- "ssr": false,
- },
- "read": [Function],
- "useMedium": [Function],
- }
- }
- />
-
-
-
-
- Create poll
-
-
-
-
-
-
-
-
-
- Cancel
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
+exports[`PollCreateDialog renders a question and some options 1`] = `""`;