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`] = ` - - - - -
-
- -
-

- Create poll -

-
-
-
-
-
-

- What is your poll question or topic? -

-
- - -
-

- Create options -

-
-
- - -
-
-
-
-
- - -
-
-
-
- Add option -
-
-
- - -
- } - 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 -

-
-
-
-
-
-

- What is your poll question or topic? -

-
- - -
-

- Create options -

-
-
- - -
-
-
-
-
- - -
-
-
-
- Add option -
-
-
- - -
- } - 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 -

- -
- -
-
-
-
-

- What is your poll question or topic? -

- -
- - -
-
-

- Create options -

-
- -
- - -
-
- -
- -
-
- -
- - -
-
- -
- -
- - Add option -
, - } - } - kind="secondary" - onClick={[Function]} - role="button" - tabIndex={0} - > -
- Add option -
-
-
-
-
- -
- Cancel -
-
- - - -
- -
-
- - - - -`; +exports[`PollCreateDialog renders a blank poll 1`] = `"

Create poll

What is your poll question or topic?

Create options

Add option
Cancel
"`; -exports[`PollCreateDialog renders a question and some options 1`] = ` - - - - -
-
- -
-

- Create poll -

-
-
-
-
-
-

- What is your poll question or topic? -

-
- - -
-

- Create options -

-
-
- - -
-
-
-
-
- - -
-
-
-
-
- - -
-
-
-
- Add option -
-
-
- - -
- } - 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 -

-
-
-
-
-
-

- What is your poll question or topic? -

-
- - -
-

- Create options -

-
-
- - -
-
-
-
-
- - -
-
-
-
-
- - -
-
-
-
- Add option -
-
-
- - -
- } - 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 -

- -
- -
-
-
-
-

- What is your poll question or topic? -

- -
- - -
-
-

- Create options -

-
- -
- - -
-
- -
- -
-
- -
- - -
-
- -
- -
-
- -
- - -
-
- -
- -
- - Add option -
, - } - } - kind="secondary" - onClick={[Function]} - role="button" - tabIndex={0} - > -
- Add option -
-
-
-
-
- -
- Cancel -
-
- - - -
- -
-
- - - - -`; +exports[`PollCreateDialog renders a question and some options 1`] = `"

Create poll

What is your poll question or topic?

Create options

Add option
Cancel
"`;