diff --git a/webapp/channels/src/components/team_settings/team_access_tab/team_access_tab.test.tsx b/webapp/channels/src/components/team_settings/team_access_tab/team_access_tab.test.tsx index 58c167c47ec..d5b36629813 100644 --- a/webapp/channels/src/components/team_settings/team_access_tab/team_access_tab.test.tsx +++ b/webapp/channels/src/components/team_settings/team_access_tab/team_access_tab.test.tsx @@ -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(); - 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(); + expect(screen.getByTestId('allowedDomainsCheckbox')).toBeInTheDocument(); + expect(screen.queryByTestId('teamInviteContainer')).toBeNull(); }); test('should not show allowed domains input if allowed domains is empty', () => {