*[uitest] Fix bug.
This commit is contained in:
@@ -11,6 +11,7 @@ class createExecutionTester extends tester
|
||||
*/
|
||||
public function inputFields($execution)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$form = $this->initForm('execution', 'create', '', 'appIframe-project');
|
||||
$form->wait(1);
|
||||
if(isset($execution['project'])) $form->dom->project->picker($execution['project']);
|
||||
@@ -88,7 +89,6 @@ class createExecutionTester extends tester
|
||||
*/
|
||||
public function create($execution, $module = 'execution')
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->inputFields($execution);
|
||||
|
||||
/* 创建成功会跳转至看板列表全部标签下,从url中获取status字段内容 */
|
||||
@@ -114,7 +114,6 @@ class createExecutionTester extends tester
|
||||
*/
|
||||
public function createWithEmptyName($execution, $field)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->inputFields($execution);
|
||||
$form = $this->loadPage();
|
||||
$text = $form->dom->{$field . 'Tip'}->getText();
|
||||
@@ -136,7 +135,6 @@ class createExecutionTester extends tester
|
||||
*/
|
||||
public function createWithRepeatName($execution, $field)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->inputFields($execution);
|
||||
if($this->checkRepeatInfo($field)) return $this->success('创建看板表单页提示信息正确');
|
||||
return $this->failed('创建看板表单页提示信息不正确');
|
||||
@@ -153,7 +151,6 @@ class createExecutionTester extends tester
|
||||
*/
|
||||
public function createWithDateError($execution, $dateType = 'end')
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->inputFields($execution);
|
||||
if($this->checkDateInfo($dateType)) return $this->success('创建看板表单页提示信息正确');
|
||||
return $this->failed('创建看板表单页提示信息不正确');
|
||||
|
||||
Reference in New Issue
Block a user