def test_move_cycle_task_to_another_state(self, login_as_creator_or_reader, activated_workflow, selenium): """Test starting a cycle task.""" # pylint: disable=invalid-name workflow_cycle = cycle_entity_population.create_workflow_cycle( activated_workflow) cycle_task = workflow_cycle.cycle_task_groups[0].cycle_tasks[0] workflow_ui_facade.start_cycle_task(cycle_task) selenium.refresh() # reload page to check state is changed actual_workflow_cycles = workflow_ui_facade.get_workflow_cycles( activated_workflow) test_utils.list_obj_assert(actual_workflow_cycles, [workflow_cycle])
def test_move_cycle_task_to_another_state( self, login_as_creator_or_reader, activated_workflow, selenium ): """Test starting a cycle task.""" # pylint: disable=invalid-name workflow_cycle = cycle_entity_population.create_workflow_cycle( activated_workflow) cycle_task = workflow_cycle.cycle_task_groups[0].cycle_tasks[0] workflow_ui_facade.start_cycle_task(cycle_task) selenium.refresh() # reload page to check state is changed actual_workflow_cycles = workflow_ui_facade.get_workflow_cycles( activated_workflow) test_utils.list_obj_assert(actual_workflow_cycles, [workflow_cycle])