From 3cd2075be31dedb344b70f011630bd8ca3733d3e Mon Sep 17 00:00:00 2001 From: yulujie Date: Wed, 25 Sep 2024 14:46:08 +0800 Subject: [PATCH] * [task#128686,done,1h] Add function. --- .../test/lib/storyestimate.ui.class.php | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/module/execution/test/lib/storyestimate.ui.class.php b/module/execution/test/lib/storyestimate.ui.class.php index d547b7522c..a4b4b2b865 100644 --- a/module/execution/test/lib/storyestimate.ui.class.php +++ b/module/execution/test/lib/storyestimate.ui.class.php @@ -50,8 +50,8 @@ class StoryEstimateTester extends tester } /** - * 需求估算值为非数字。 - * Story estimate value is not a number. + * 需求估算值为非数字或负数。 + * Story estimate value is not a number or negative. * * @param array $estimate * @param string $type notNumber|negative @@ -74,4 +74,22 @@ class StoryEstimateTester extends tester return $this->failed('估算值为负数提示失败'); } } + + /** + * 执行没有团队成员时需求估算。 + * Story estimate when no team member. + * + * @access public + * @return void + */ + public function noTeamInfo() + { + $form = $this->initForm('execution', 'story', array('execution' => '3'), 'appIframe-execution'); + + $form->dom->xpath['firstEstimateBtn'] = "//a[@title = '{$this->lang->execution->storyEstimate}']"; + $form->dom->firstEstimateBtn->click(); + $form->wait(1); + if($form->dom->noTeamInfo->getText() == $this->lang->execution->noTeam) return $this->success('没有团队成员提示成功'); + return $this->failed('没有团队成员提示失败'); + } }