From 78344b7ea4ecbf3ebc62c8224c2de033858cdfa8 Mon Sep 17 00:00:00 2001 From: lixiaoyu Date: Tue, 3 Sep 2024 08:00:23 +0000 Subject: [PATCH] *[task#127573,done,1h,0h] Add ui test files of unlink allstory --- .../productplan/test/lib/linkstory.ui.class.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/module/productplan/test/lib/linkstory.ui.class.php b/module/productplan/test/lib/linkstory.ui.class.php index faa107ddf6..f107e6cf0e 100644 --- a/module/productplan/test/lib/linkstory.ui.class.php +++ b/module/productplan/test/lib/linkstory.ui.class.php @@ -75,4 +75,20 @@ class linkStoryTester extends tester $linkNumAfter = (int) explode(' ', $viewPage->dom->linkNum->getText())[1];//计划移除需求后,关联的需求数 return ($linkNum -1 ==$linkNumAfter) ? $this->success('移除单个需求成功') : $this->failed('移除单个需求失败'); } + /** + * 移除全部需求 + * unlink allstory + * + * @param $planID + * @return mixed + */ + public function unLinkAllStory($planID) + { + $form = $this->initForm('productplan', 'view', $planID, 'appIframe-product'); + $form->wait(1); + $form->dom->selectAllLink->click();//全选需求 + $form->dom->btn($this->lang->productplan->unlinkStoryAB)->click();//点击移除 + $viewPage = $this->initForm('productplan', 'view', $planID, 'appIframe-product'); + return ($viewPage->dom->checkInfo === false) ? $this->success('移除全部需求成功') : $this->failed('移除全部需求失败'); + } }