Commit 8bd1fc97 authored by iv's avatar iv

ERP5Workflow: could reproduce problem with Base_viewDict and worklist view

parent e8b1ec3d
......@@ -214,7 +214,7 @@ class TestConvertedWorkflow(TestERP5WorkflowMixin):
self.resetComponentTool()
self.login()
def test_permission(self):
def test_13_permission(self):
"""
test permission/role mapping on states (ERP5 Workflow only)
# XXX(WORKFLOW) move this test to testERP5Workflow?
......@@ -272,6 +272,14 @@ class TestConvertedWorkflow(TestERP5WorkflowMixin):
workflow.updateRoleMappingsFor(text_document)
self.assertEqual(getattr(text_document, permission_key), ['Assignor'])
def test_14_testGuardsAreNotMessingUpBase_viewDict(self):
# check Base_viewDict is available on workflow's transition
self.workflow.transition_delete_action.Base_viewDict()
def test_15_testWorklistViewIsAccessible(self):
# check worklist view is available on workflow
self.workflow.worklist_1_draft_test_workflow_document_list.view()
class TestDCWorkflow(TestERP5WorkflowMixin):
"""
Check DC Workflow works correctly in new Workflow Tool.
......
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