*[task#129120,doing,0.3h,2h] add function of edit branch

This commit is contained in:
lixiaoyu
2024-09-26 15:14:46 +08:00
committed by 李阳
parent 35ef8265fd
commit 86665e8918
@@ -0,0 +1,20 @@
<?php
include dirname(__FILE__, 5) . '/test/lib/ui.php';
class editBranchTester extends tester
{
/**
* 编辑分支
* edit branch
*
* @param $branch 分支数据
* @param $productID 产品ID
*
* @return mixed
*/
public function editBranch($branch, $productID)
{
$form = $this->initForm('branch', 'manage', $productID, 'appIframe-product');
$form->dom->allTab->click();
$form->dom->editBtn->click();
//设置表单字段值
if (isset($branch->name)) $form->dom->editName->setValue($branch->name);