From 42e2fb277269d3a61573b1e1b47ed8e84f71e65e Mon Sep 17 00:00:00 2001 From: lixiaoyu Date: Mon, 10 Feb 2025 02:24:59 +0000 Subject: [PATCH] *[task#137057,doing,1h,2h] function of close kanban --- module/kanban/test/lib/kanban.ui.class.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/module/kanban/test/lib/kanban.ui.class.php b/module/kanban/test/lib/kanban.ui.class.php index 28d5316faf..0d138562f9 100755 --- a/module/kanban/test/lib/kanban.ui.class.php +++ b/module/kanban/test/lib/kanban.ui.class.php @@ -55,4 +55,23 @@ class kanbanTester extends tester ? $this->success('编辑看板成功') : $this->failed('编辑看板失败'); } + + /** + * 关闭看板 + * Close kanban + * + * @return mixed + */ + public function closeKanban() + { + $form = $this->initForm('kanban', 'space', ['browseType' => 'cooperation'], 'appIframe-kanban'); + $form->dom->moreBtn->click(); + $form->dom->btn($this->lang->kanban->close)->click(); + $form->wait(2); + $form->dom->saveCloseBtn->click(); + $form->wait(2); + return ($form->dom->kanbanStatus->getText() == $this->lang->kanban->closed) + ? $this->success('关闭看板成功') + : $this->failed('关闭看板失败'); + } }