Skip to content

Commit

Permalink
+[task#131955,doing,2h,1h] Add functions of projectbuild browse.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuifang authored and liyangLyon committed Nov 6, 2024
1 parent 779ab89 commit b8066d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions module/projectbuild/test/lib/browse.ui.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('项目版本搜索成功');
}
}

0 comments on commit b8066d8

Please sign in to comment.