def test_close_and_controls_do_not_block_new_task_creation(ui,qtbot): page=ui.window.verification_panel task=ui.service.verification.create_task('任务',request_id='control')['task_id'] page.open_task(task) qtbot.waitUntil(lambda:not page.controller.task_query.busy) assert page.start_button.isEnabled() and page.new_button.isEnabled() page.begin_shutdown() assert page.new_button.isEnabled()