コード例 #1
0
 def test_create_workflow(self, selenium):
   """Tests creation of workflow via UI."""
   workflow = app_entity_factory.create_workflow()
   workflow_ui_facade.create_workflow(workflow)
   actual_task_group_titles = workflow_ui_facade.task_group_titles(workflow)
   assert ui_facade.active_tab_name() == "Setup (1)"
   actual_workflow = ui_facade.get_obj(workflow)
   actual_workflow.first_task_group_title = actual_task_group_titles[0]
   test_utils.obj_assert(actual_workflow, workflow)
コード例 #2
0
 def test_create_repeate_on_workflow(self, login_as_creator_or_reader,
                                     selenium):
     """Test creation repeat on workflow."""
     workflow = workflow_entity_factory.WorkflowFactory().create(
         repeat_every=1, repeat_unit=workflow_repeat_units.WEEKDAY)
     workflow_entity_factory.TaskGroupFactory().create(workflow=workflow)
     workflow_ui_facade.create_workflow(workflow)
     actual_workflow = ui_facade.get_obj(workflow)
     object_rest_facade.set_attrs_via_get(workflow, ["created_at"])
     object_rest_facade.set_attrs_via_get(workflow, ["updated_at"])
     test_utils.obj_assert(actual_workflow, workflow)
コード例 #3
0
 def test_create_repeate_on_workflow(
     self, login_as_creator_or_reader, selenium
 ):
   """Test creation repeat on workflow."""
   workflow = workflow_entity_factory.WorkflowFactory().create(
       repeat_every=1, repeat_unit=workflow_repeat_units.WEEKDAY)
   workflow_entity_factory.TaskGroupFactory().create(workflow=workflow)
   workflow_ui_facade.create_workflow(workflow)
   actual_workflow = ui_facade.get_obj(workflow)
   object_rest_facade.set_attrs_via_get(workflow, ["created_at"])
   object_rest_facade.set_attrs_via_get(workflow, ["updated_at"])
   test_utils.obj_assert(actual_workflow, workflow)
コード例 #4
0
 def workflow(self):
     """Create workflow via UI."""
     workflow = workflow_entity_factory.WorkflowFactory().create()
     workflow_entity_factory.TaskGroupFactory().create(workflow=workflow)
     workflow_ui_facade.create_workflow(workflow)
     return workflow
コード例 #5
0
 def workflow(self):
   """Create workflow via UI."""
   workflow = workflow_entity_factory.WorkflowFactory().create()
   workflow_entity_factory.TaskGroupFactory().create(workflow=workflow)
   workflow_ui_facade.create_workflow(workflow)
   return workflow