* [task#126878,done,0.1h,0h] Modify sonar errors of ui test to activate execution.

This commit is contained in:
yulujie
2024-08-26 08:36:17 +08:00
committed by 李阳
parent b6bbf5d021
commit be0bfd9af4
2 changed files with 2 additions and 3 deletions
@@ -1,6 +1,6 @@
<?php
include dirname(__FILE__, 5) . '/test/lib/ui.php';
Class activateExecutionTester extends tester
class activateExecutionTester extends tester
{
/**
* 输入激活执行表单字段。
@@ -13,7 +13,6 @@ Class activateExecutionTester extends tester
public function inputFields($end, $executionId)
{
$form = $this->initForm('execution', 'view', array('execution' => $executionId ), 'appIframe-execution');
$plannedBegin = $form->dom->plannedBegin->getText();
$form->dom->btn($this->lang->execution->activate)->click();
if(isset($end)) $form->dom->end->datePicker($end);
$form->dom->activateSubmit->click();
@@ -55,7 +55,7 @@ class putoffExecutionTester extends tester
* @access public
* @return bool
*/
Public function putoffWithWrongDate($execution, $executionId, $dateType = 'end')
public function putoffWithWrongDate($execution, $executionId, $dateType = 'end')
{
$this->inputFields($execution, $executionId);
$form = $this->loadPage();