19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-25 12:00:11 +01:00
parent e1d89e11e3
commit a1f02d8cc7
225 changed files with 2335 additions and 775 deletions

View file

@ -660,6 +660,12 @@ class TestHrEmployee(TestHrCommon):
}, {
'name': 'Multi Email Employee',
'work_email': '"Name1" <name@test.example.com>, "Name 2" <name2@test.example.com>',
}, {
'name': 'Duplicate Email Employee 1',
'work_email': 'duplicate@example.com',
}, {
'name': 'Duplicate Email Employee 2',
'work_email': 'duplicate@example.com',
},
])
# Add an existing employee who already has a user to the employee list
@ -669,13 +675,15 @@ class TestHrEmployee(TestHrCommon):
action = confirmed_employees.action_create_users()
params = action.get('params')
self.assertEqual(params.get('message'), f"The following employees have the same work email address: {employees[6].name}, {employees[7].name}")
params = params.get('next').get('params')
self.assertEqual(params.get('message'), f"User already exists with the same email for Employees {employees[0].name}, {employees[4].name}")
params = params.get('next').get('params')
self.assertEqual(params.get('message'), f"You need to set a valid work email address for {employees[2].name}, {employees[5].name}")
params = params.get('next').get('params')
self.assertEqual(params.get('message'), f"You need to set the work email address for {employees[3].name}")
params = params.get('next').get('params')
self.assertEqual(params.get('message'), f"User already exists for Those Employees {employees[6].name}")
self.assertEqual(params.get('message'), f"User already exists for Those Employees {employees[8].name}")
params = params.get('next').get('params')
self.assertEqual(params.get('message'), f"Users {employees[1].name} creation successful")
self.assertTrue(employees[1].user_id)