mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Merge 16081e075b into 7e75035cb6
This commit is contained in:
commit
c7bbdef569
2 changed files with 3 additions and 3 deletions
|
|
@ -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.'})}
|
||||
/>
|
||||
}
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue