Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbuks committed Jul 17, 2024
1 parent 3e63dd6 commit d58b21a
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ exports[`components/AddGroupsToChannelModal should match snapshot 1`] = `
"current": null,
}
}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ exports[`components/AddGroupsToTeamModal should match snapshot 1`] = `
"current": null,
}
}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ exports[`component/add_user_to_group_multiselect should match snapshot with diff
"current": null,
}
}
showInputByDefault={false}
valueWithImage={true}
values={Array []}
/>
Expand Down Expand Up @@ -163,6 +164,7 @@ exports[`component/add_user_to_group_multiselect should match snapshot with prof
"current": null,
}
}
showInputByDefault={false}
valueWithImage={true}
values={Array []}
/>
Expand Down Expand Up @@ -232,6 +234,7 @@ exports[`component/add_user_to_group_multiselect should match snapshot without a
"current": null,
}
}
showInputByDefault={false}
valueWithImage={true}
values={Array []}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ exports[`components/admin_console/add_users_to_team_modal/AddUsersToTeamModal sh
"current": null,
}
}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down Expand Up @@ -444,6 +445,7 @@ exports[`components/admin_console/add_users_to_team_modal/AddUsersToTeamModal sh
"current": null,
}
}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ exports[`admin_console/add_users_to_role_modal search should not include bot use
saveButtonPosition="top"
saving={false}
savingEnabled={true}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down Expand Up @@ -308,6 +309,7 @@ exports[`admin_console/add_users_to_role_modal should exclude user 1`] = `
saveButtonPosition="top"
saving={false}
savingEnabled={true}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down Expand Up @@ -488,6 +490,7 @@ exports[`admin_console/add_users_to_role_modal should have single passed value 1
saveButtonPosition="top"
saving={false}
savingEnabled={true}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down Expand Up @@ -709,6 +712,7 @@ exports[`admin_console/add_users_to_role_modal should include additional user 1`
saveButtonPosition="top"
saving={false}
savingEnabled={true}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down Expand Up @@ -930,6 +934,7 @@ exports[`admin_console/add_users_to_role_modal should include additional user 2`
saveButtonPosition="top"
saving={false}
savingEnabled={true}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down Expand Up @@ -1110,6 +1115,7 @@ exports[`admin_console/add_users_to_role_modal should not include bot user 1`] =
saveButtonPosition="top"
saving={false}
savingEnabled={true}
showInputByDefault={false}
valueRenderer={[Function]}
valueWithImage={false}
values={Array []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ exports[`components/channel_invite_modal should match snapshot for channel_invit
"current": null,
}
}
showInputByDefault={false}
valueWithImage={true}
values={Array []}
/>
Expand Down Expand Up @@ -263,6 +264,7 @@ exports[`components/channel_invite_modal should match snapshot for channel_invit
"current": null,
}
}
showInputByDefault={false}
valueWithImage={true}
values={Array []}
/>
Expand Down Expand Up @@ -423,6 +425,7 @@ exports[`components/channel_invite_modal should match snapshot with exclude and
"current": null,
}
}
showInputByDefault={false}
valueWithImage={true}
values={Array []}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ exports[`components/channel_members_dropdown should match snapshot for dropdown
openLeft={true}
openUp={false}
>
<MenuItemAction
id="undefined-make-channel-member"
onClick={[Function]}
show={true}
text="Make Channel Member"
/>
<MenuItemAction
data-testid="removeFromChannel"
isDangerous={true}
Expand Down Expand Up @@ -211,37 +205,10 @@ exports[`components/channel_members_dropdown should match snapshot when user is
`;

exports[`components/channel_members_dropdown should match snapshot with role change possible 1`] = `
<MenuWrapper
animationComponent={[Function]}
className=""
>
<button
className="dropdown-toggle theme color--link style--none"
type="button"
>
<span
className="sr-only"
/>
<span>
<MemoizedFormattedMessage
defaultMessage="Channel Admin"
id="channel_members_dropdown.channel_admin"
/>
</span>
<DropdownIcon />
</button>
<Menu
ariaLabel="Change the role of channel member"
openLeft={true}
openUp={false}
>
<MenuItemAction
id="undefined-make-channel-member"
onClick={[Function]}
show={true}
text="Make Channel Member"
/>
</Menu>
</MenuWrapper>
<div>
<MemoizedFormattedMessage
defaultMessage="Channel Admin"
id="channel_members_dropdown.channel_admin"
/>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import type {ActionResult} from 'mattermost-redux/types/actions';

import ChannelMembersDropdown from 'components/channel_members_dropdown/channel_members_dropdown';

import {mockDispatch} from 'packages/mattermost-redux/test/test_store';
import {ModalIdentifiers} from 'utils/constants';

import {mockDispatch} from 'packages/mattermost-redux/test/test_store';

jest.mock('react-redux', () => ({
...jest.requireActual('react-redux') as typeof import('react-redux'),
useDispatch: () => mockDispatch,
Expand Down Expand Up @@ -53,6 +54,7 @@ describe('components/channel_members_dropdown', () => {
canRemoveMember: true,
index: 0,
totalUsers: 10,
hasChannelMembersAdmin: true,
actions: {
removeChannelMember: jest.fn().mockImplementation(() => {
const error = {
Expand Down Expand Up @@ -80,6 +82,7 @@ describe('components/channel_members_dropdown', () => {
roles: 'channel_guest',
},
canChangeMemberRoles: true,
hasChannelMembersAdmin: true,
};
const wrapper = shallow(
<ChannelMembersDropdown {...props}/>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ exports[`components/multiselect/multiselect MultiSelectList should match snapsho
page={0}
perPage={5}
query=""
showInputByDefault={false}
/>
<div
className="multi-select__help"
Expand Down Expand Up @@ -371,6 +372,7 @@ exports[`components/multiselect/multiselect should match snapshot 1`] = `
page={0}
perPage={5}
query=""
showInputByDefault={false}
/>
<div
className="multi-select__help"
Expand Down Expand Up @@ -553,6 +555,7 @@ exports[`components/multiselect/multiselect should match snapshot for page 2 1`]
page={1}
perPage={5}
query=""
showInputByDefault={false}
/>
<div
className="multi-select__help"
Expand Down

0 comments on commit d58b21a

Please sign in to comment.