Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/locale/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ export default {
adminTooltip:
'Per aggiungere questo ruolo è richiesta la sottoscrizione di un modulo da parte del Legale Rappresentante',
},
addOnAggregatedEntities: {
title: "Seleziona l'ambito di operatività",
radioTitle1: 'Solo per il mio ente',
radioDescription1: "Potrà gestire e operare solo all'interno del proprio ente",
radioTitle2: 'Per tutti gli enti aggregati',
radioDescription2: 'Potrà gestire e operare su tutti gli enti',
},
addLegalRepresentative: {
title: 'Indica il Legale Rappresentante',
subTitle:
Expand Down
1 change: 1 addition & 0 deletions src/microcomponents/mock_dashboard/data/party.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export const mockedParties: Array<Party> = [
institutionType: 'PA',
origin: 'IPA',
originId: 'originId1',
isAggregator: true,
},
{
productId: 'prod-pn',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/addUserFlow/addUser/AddProductToUserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Product } from '../../../model/Product';
import { ProductsRolesMap } from '../../../model/ProductRole';
import { RequestOutcomeMessage } from '../../../model/UserRegistry';
import AddLegalRepresentativeForm from '../addManager/AddLegalRepresentativeForm';
import AddUserForm from './components/AddUserForm';
import AddUserForm from './components/AddUserForm/AddUserForm';
import { MessageNoAction } from './components/MessageNoAction';

const CustomTextTransform = styled(Typography)({
Expand Down
2 changes: 1 addition & 1 deletion src/pages/addUserFlow/addUser/AddUsersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { getUserCountService } from '../../../services/usersService';
import { LOADING_TASK_GET_USER_ADMIN_COUNT, PRODUCT_IDS } from '../../../utils/constants';
import { ENV } from '../../../utils/env';
import AddLegalRepresentativeForm from '../addManager/AddLegalRepresentativeForm';
import AddUserForm from './components/AddUserForm';
import AddUserForm from './components/AddUserForm/AddUserForm';
import { MessageNoAction } from './components/MessageNoAction';

type Props = {
Expand Down
8 changes: 5 additions & 3 deletions src/pages/addUserFlow/addUser/__tests__/AddUserForm.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { fireEvent, screen, waitFor } from '@testing-library/react';
import { RoleEnum } from '../../../../api/generated/onboarding/UserDto';
import { mockedParties } from '../../../../microcomponents/mock_dashboard/data/party';
import { mockedPartyProducts, mockedProductRoles } from '../../../../microcomponents/mock_dashboard/data/product';
import {
mockedPartyProducts,
mockedProductRoles,
} from '../../../../microcomponents/mock_dashboard/data/product';
import { productRoles2ProductRolesList } from '../../../../model/ProductRole';
import { renderWithProviders } from '../../../../utils/test-utils';
import AddUserForm from '../components/AddUserForm';
import AddUserForm from '../components/AddUserForm/AddUserForm';

describe('AddUserForm Component', () => {
const defaultProps = {
Expand Down Expand Up @@ -190,4 +193,3 @@ describe('AddUserForm Component', () => {
expect(screen.getByRole('button', { name: /Continua/i })).toBeDisabled();
});
});

Loading
Loading