This commit is contained in:
arya rizky 2026-05-23 03:04:37 +02:00 committed by GitHub
commit c7bbdef569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ const AllowedDomainsSelect = ({allowedDomains, setAllowedDomains, setHasChanges,
onChange={handleOnChangeDomains}
handleNewSelection={updateAllowedDomains}
isClearable={false}
description={formatMessage({id: 'general_tab.AllowedDomainsTip', defaultMessage: 'Seperate multiple domains with a space, comma, tab or enter.'})}
description={formatMessage({id: 'general_tab.AllowedDomainsTip', defaultMessage: 'Separate multiple domains with a space, comma, tab or enter.'})}
/>
}
</>

View file

@ -81,14 +81,14 @@ describe('components/TeamSettings', () => {
test('should not show allowed domains input if allowed domains is empty', () => {
const props = {...defaultProps, team: TestHelper.getTeamMock({allowed_domains: ''})};
renderWithContext(<AccessTab {...props}/>);
const allowedDomainsInput = screen.queryByText('Seperate multiple domains with a space, comma, tab or enter.');
const allowedDomainsInput = screen.queryByText('Separate multiple domains with a space, comma, tab or enter.');
expect(allowedDomainsInput).toBeNull();
});
test('should show allowed domains input if allowed domains is not empty', () => {
const props = {...defaultProps, team: TestHelper.getTeamMock({allowed_domains: 'test.com'})};
renderWithContext(<AccessTab {...props}/>);
const allowedDomainsInput = screen.getByText('Seperate multiple domains with a space, comma, tab or enter.');
const allowedDomainsInput = screen.getByText('Separate multiple domains with a space, comma, tab or enter.');
expect(allowedDomainsInput).toBeInTheDocument();
const allowedDomainsInputValue = screen.getByText('test.com');
expect(allowedDomainsInputValue).toBeInTheDocument();