From eb70d4a3e3999b5f5fe38ef6f437ec778afa2a0f Mon Sep 17 00:00:00 2001 From: huairong Date: Thu, 22 Aug 2024 14:11:13 +0800 Subject: [PATCH] + [task#126576] add assertion of createstage file. --- module/programplan/test/lib/createstage.ui.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/programplan/test/lib/createstage.ui.class.php b/module/programplan/test/lib/createstage.ui.class.php index 11843e66f7..aeadc469b7 100755 --- a/module/programplan/test/lib/createstage.ui.class.php +++ b/module/programplan/test/lib/createstage.ui.class.php @@ -64,5 +64,12 @@ class createStageTester extends tester } return $this->failed('创建阶段表单页提示信息不正确'); } + + $executionPage = $this->loadPage('project', 'execution'); + if($executionPage->dom->name->getText() != $waterfall['name_0']) return $this->failed('阶段名称错误'); + if($executionPage->dom->begin->getText() != $waterfall['begin_0']) return $this->failed('阶段计划开始错误'); + if($executionPage->dom->end->getText() != $waterfall['end_0']) return $this->failed('阶段计划完成错误'); + + return $this->success(); } }