Merge branch 'cursor/push-settings-tos-compass-checkbox-ed3b' into cursor/channels-resource-compass-checkbox-ed3b

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
This commit is contained in:
Cursor Agent
2026-10-15 17:44:02 +00:00
co-authored by Matthew Birtch
@@ -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', () => {