def test_setup_tab_is_opened_after_workflow_ui_creation( self, selenium, workflow ): """Test that creation of workflow via UI redirects to Setup tab.""" # pylint: disable=invalid-name workflow_tabs.SetupTab().wait_to_be_init() assert ui_facade.active_tab_name() == "Setup (1)"
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)
def test_active_cycles_tab_after_workflow_activation( self, activate_workflow): """Test Active Cycles tab after activation of workflow.""" # pylint: disable=invalid-name assert ui_facade.active_tab_name() == "Active Cycles (1)"
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)"
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)"
def test_active_cycles_tab_after_workflow_activation( self, activate_workflow ): """Test Active Cycles tab after activation of workflow.""" # pylint: disable=invalid-name assert ui_facade.active_tab_name() == "Active Cycles (1)"