def test_task_group_created_after_workflow_ui_creation(
     self, selenium, workflow
 ):
   """Test that creation of workflow via UI creates a task group."""
   # pylint: disable=invalid-name
   actual_task_groups = workflow_ui_facade.task_group_objs(
       workflow)
   test_utils.list_obj_assert(actual_task_groups, workflow.task_groups)
Esempio n. 2
0
 def test_task_group_created_after_workflow_ui_creation(
     self, selenium, workflow
 ):
   """Test that creation of workflow via UI creates a task group."""
   # pylint: disable=invalid-name
   actual_task_groups = workflow_ui_facade.task_group_objs(
       workflow)
   test_utils.list_obj_assert(actual_task_groups, workflow.task_groups)
Esempio n. 3
0
 def test_add_task_group(self, app_workflow, selenium):
     """Test creation of task group."""
     task_group = workflow_entity_factory.TaskGroupFactory().create()
     workflow_ui_facade.add_task_group(app_workflow, task_group)
     assert workflow_ui_facade.task_group_objs(app_workflow)
     assert ui_facade.active_tab_name() == "Setup (1)"
Esempio n. 4
0
 def test_delete_task_group(self, app_workflow, app_task_group, selenium):
     """Test deletion of task group."""
     workflow_ui_facade.delete_task_group(app_task_group)
     assert not workflow_ui_facade.task_group_objs(app_workflow)
     assert ui_facade.active_tab_name() == "Setup (0)"
Esempio n. 5
0
 def test_add_task_group(self, app_workflow, selenium):
   """Test creation of task group."""
   task_group = workflow_entity_factory.TaskGroupFactory().create()
   workflow_ui_facade.add_task_group(app_workflow, task_group)
   assert workflow_ui_facade.task_group_objs(app_workflow)
   assert ui_facade.active_tab_name() == "Setup (1)"
Esempio n. 6
0
 def test_delete_task_group(self, app_workflow, app_task_group, selenium):
   """Test deletion of task group."""
   workflow_ui_facade.delete_task_group(app_task_group)
   assert not workflow_ui_facade.task_group_objs(app_workflow)
   assert ui_facade.active_tab_name() == "Setup (0)"