* [task#133028,done,0.5h] Add ui test files of activate a todo

This commit is contained in:
sunxiaoqi
2024-12-03 09:49:29 +08:00
committed by 曹延义
parent 3a4ad54970
commit abe1fd39e4
+18
View File
@@ -62,3 +62,21 @@ class addTodoTester extends tester
if($todoList->dom->fstTodoStatus->getText() != $todoStatus->done) return $this->failed('完成待办失败');
return $this->success('完成待办成功');
}
/**
* 激活待办。
* Activate a todo.
*
* @param string $todoStatus
* @access public
* @return void
*/
public function activateTodo($todoStatus)
{
$this->openUrl('my', 'todo', array('type' => 'all'));
$todoList = $this->loadPage('my', 'todo', array('type' => 'all'));
$todoList->dom->fstTodoActivate->click();
$todoList->wait(1);
if($todoList->dom->fstTodoStatus->getText() != $todoStatus->waiting) return $this->failed('激活待办失败');
return $this->success('激活待办成功');
}