def test_delete_workflow( self, login_as_creator_or_reader, app_workflow, selenium ): """Test deletion of workflow.""" ui_facade.delete_obj(app_workflow) ui_facade.open_obj(app_workflow) assert ui_utils.is_error_404()
def archive_workflow(workflow): """Archives workflow.""" ui_facade.open_obj(workflow) info_widget = internal_ui_operations.info_widget_page(workflow) info_widget.archive() workflow.is_archived = True workflow.recurrences_started = False workflow.modified_by = users.current_person()
def test_delete_workflow(self, login_as_creator_or_reader, app_workflow, selenium): """Test deletion of workflow.""" ui_facade.delete_obj(app_workflow) ui_facade.open_obj(app_workflow) assert ui_utils.is_error_404()