mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-16 15:18:10 +08:00
Merge branch 'cursor/commercial-support-compass-checkbox-ed3b' into cursor/filter-checkbox-compass-ed3b
Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
This commit is contained in:
+5
-5
@@ -80,11 +80,11 @@ describe('components/TeamSettings', () => {
|
||||
expect(baseActions.regenerateTeamInviteId).toHaveBeenCalledWith(defaultProps.team?.id);
|
||||
});
|
||||
|
||||
test('should not render allowed domains checkbox if no permissions for team inviting', () => {
|
||||
const props = {...defaultProps, canInviteTeamMembers: false};
|
||||
renderWithContext(<AccessTab {...props}/>);
|
||||
const allowedDomainsCheckbox = screen.queryByTestId('allowedDomainsCheckbox');
|
||||
expect(allowedDomainsCheckbox).toBeNull();
|
||||
test('should still render allowed domains checkbox if no permissions for team inviting', () => {
|
||||
// Allowed domains is independent of INVITE_USER; only the invite section is gated.
|
||||
renderWithContext(<AccessTab {...defaultProps}/>);
|
||||
expect(screen.getByTestId('allowedDomainsCheckbox')).toBeInTheDocument();
|
||||
expect(screen.queryByTestId('teamInviteContainer')).toBeNull();
|
||||
});
|
||||
|
||||
test('should not show allowed domains input if allowed domains is empty', () => {
|
||||
|
||||
Reference in New Issue
Block a user