From 2977b31a3942ac0e6bd2ad1c38f2c008037c54a6 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Wed, 6 Sep 2017 04:34:53 +0800 Subject: slight modifications to keyboards dialog and also fix error with non-Mac (#7367) --- .../__snapshots__/shortcuts_modal.test.jsx.snap | 237 +++++++++++++++++++++ webapp/tests/components/shortcuts_modal.test.jsx | 25 +++ 2 files changed, 262 insertions(+) create mode 100644 webapp/tests/components/__snapshots__/shortcuts_modal.test.jsx.snap create mode 100644 webapp/tests/components/shortcuts_modal.test.jsx (limited to 'webapp/tests/components') diff --git a/webapp/tests/components/__snapshots__/shortcuts_modal.test.jsx.snap b/webapp/tests/components/__snapshots__/shortcuts_modal.test.jsx.snap new file mode 100644 index 000000000..cfe719ba4 --- /dev/null +++ b/webapp/tests/components/__snapshots__/shortcuts_modal.test.jsx.snap @@ -0,0 +1,237 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`components/ShortcutsModal should match snapshot modal for Mac 1`] = ` + + + + + + + +`; + +exports[`components/ShortcutsModal should match snapshot modal for non-Mac like Windows/Linux 1`] = ` + + + + + + + +`; diff --git a/webapp/tests/components/shortcuts_modal.test.jsx b/webapp/tests/components/shortcuts_modal.test.jsx new file mode 100644 index 000000000..04fa51a76 --- /dev/null +++ b/webapp/tests/components/shortcuts_modal.test.jsx @@ -0,0 +1,25 @@ +// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import React from 'react'; + +import {mountWithIntl} from 'tests/helpers/intl-test-helper.jsx'; +import ShortcutsModal from 'components/shortcuts_modal.jsx'; + +describe('components/ShortcutsModal', () => { + test('should match snapshot modal for Mac', () => { + const wrapper = mountWithIntl( + + ); + + expect(wrapper).toMatchSnapshot(); + }); + + test('should match snapshot modal for non-Mac like Windows/Linux', () => { + const wrapper = mountWithIntl( + + ); + + expect(wrapper).toMatchSnapshot(); + }); +}); -- cgit v1.2.3-1-g7c22