From b8066d8c629f1636d7c685041c1e771f0ef4c5ec Mon Sep 17 00:00:00 2001 From: lihuifang Date: Wed, 6 Nov 2024 15:59:23 +0800 Subject: [PATCH] +[task#131955,doing,2h,1h] Add functions of projectbuild browse. --- module/projectbuild/test/lib/browse.ui.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/projectbuild/test/lib/browse.ui.class.php b/module/projectbuild/test/lib/browse.ui.class.php index 67f487b31b..22b8037f64 100644 --- a/module/projectbuild/test/lib/browse.ui.class.php +++ b/module/projectbuild/test/lib/browse.ui.class.php @@ -33,3 +33,11 @@ public function switchProduct($product, $expectNum) public function searchBuild($build) { $form = $this->initForm('projectbuild', 'browse', array('projectID' => '1' ), 'appIframe-project'); + $form->dom->search($searchList = array("名称,=, {$build}")); + $form->wait(2); + + //断言检查搜索是否成功 + if($form->dom->buildNameBrowse->getText() != $build) return $this->failed('项目版本搜索失败'); + return $this->success('项目版本搜索成功'); + } +}