Commit 9ce08585 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel_ui_test: test: assignments are automatically created when adding a virtual master

parent f70e2bbd
......@@ -42,8 +42,7 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
newSecurityManager(None, portal.acl_users.getUser(SUPER_USER))
# Ensure checkConsistency is OK on the website installed by ui_test bt5
portal.portal_alarms.upgrader_check_post_upgrade.activeSense(
fixit=True)
portal.portal_alarms.upgrader_check_post_upgrade.activeSense(fixit=True)
# Currency
currency = portal.currency_module.newContent(
......@@ -152,19 +151,14 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
scenario == 'accounting',
currency.getRelativeUrl(),
batch=1)
manager_person.newContent(
portal_type='Assignment',
title='Manager for project %s' % project.getTitle(),
destination_project_value=project,
function='production/manager'
).open()
if scenario == 'accounting':
manager_person.newContent(
portal_type='Assignment',
title='Sale',
function='sale/manager'
).open()
customer_person.newContent(
portal_type='Assignment',
title='Customer for project %s' % project.getTitle(),
......@@ -194,24 +188,12 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
).open()
if scenario == 'customer_remote':
remote_project = customer_person.Person_addVirtualMaster(
customer_person.Person_addVirtualMaster(
'Test Remote Project',
scenario == 'accounting',
scenario == 'accounting',
currency.getRelativeUrl(),
batch=1)
customer_person.newContent(
portal_type='Assignment',
title='Manager for project %s' % project.getTitle(),
destination_project_value=remote_project,
function='production/manager'
).open()
remote_customer_person.newContent(
portal_type='Assignment',
title='Customer for project %s' % remote_project.getTitle(),
destination_project_value=remote_project,
function='customer'
).open()
finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment