* Detox/E2E: Add e2e tests for channel notification preference * Fixed unit snap files * Moved e2e to notifications and updated formatting * Added basic snapshot tests * Update app/components/radio_button/radio_button_group.test.js Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/components/radio_button/radio_button_group.test.js Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/components/radio_button/radio_button_group.test.js Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/components/sidebars/settings/drawer_item.test.js Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/screens/channel_info/edit_channel/edit_channel.tsx Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/screens/channel_info/notification_preference/notification_preference.test.js Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/screens/channel_info/notification_preference/notification_preference.tsx Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/components/radio_button/radio_button_group.test.js Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Fix radio button group snap file * Simplified element call * Rename channel sidebar to main sidebar * Rename drawer button files * Update app/components/sidebars/settings/settings_sidebar.test.js Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/screens/channel_info/channel_info_row.test.js Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update comments Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
31 lines
815 B
JavaScript
31 lines
815 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React from 'react';
|
|
import {shallowWithIntl} from 'test/intl-test-helper';
|
|
|
|
import Preferences from '@mm-redux/constants/preferences';
|
|
|
|
import SettingsSidebar from './settings_sidebar.ios';
|
|
|
|
describe('SettingsSidebar', () => {
|
|
const baseProps = {
|
|
actions: {
|
|
logout: jest.fn(),
|
|
setStatus: jest.fn(),
|
|
},
|
|
currentUser: {
|
|
id: 'user-id',
|
|
},
|
|
status: 'offline',
|
|
theme: Preferences.THEMES.default,
|
|
};
|
|
|
|
test('should match snapshot', () => {
|
|
const wrapper = shallowWithIntl(
|
|
<SettingsSidebar {...baseProps}/>,
|
|
);
|
|
|
|
expect(wrapper.getElement()).toMatchSnapshot();
|
|
});
|
|
});
|