+ [task#126575] add ui test files of editstage.

This commit is contained in:
huairong
2024-08-23 15:57:33 +08:00
committed by 李阳
parent c83727d45f
commit c41346a1e2
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env php
<?php
chdir(__DIR__);
include '../lib/editstage.ui.class.php';
zendata('project')->loadYaml('execution', false, 2)->gen(10);
$tester = new editStageTester();
$tester->login();
$waterfall = array(
array('name' => '', 'begin' => '2020-11-02', 'end' => '2020-11-09'),
array('name' => '需求的阶段a1', 'begin' => '', 'end' => '2020-11-09'),
array('name' => '需求的阶段a1', 'begin' => '2020-11-02', 'end' => ''),
array('name' => '需求的阶段a1', 'begin' => '2020-11-11', 'end' => '2020-11-16'),
);
r($tester->checkInput($waterfall['0'])) && p('message,status') && e('编辑阶段表单页提示信息正确,success'); //校验阶段名称不能为空
r($tester->checkInput($waterfall['1'])) && p('message,status') && e('编辑阶段表单页提示信息正确,success'); //校验计划开始必填
r($tester->checkInput($waterfall['2'])) && p('message,status') && e('编辑阶段表单页提示信息正确,success'); //校验计划完成必填
r($tester->checkInput($waterfall['3'])) && p('status') && e('success'); //编辑需求阶段
$tester->closeBrowser();