* [task#131888,doing,0.7h] Add ui test files of create a todo

This commit is contained in:
sunxiaoqi
2024-12-03 09:49:29 +08:00
committed by 曹延义
parent a73bcd9027
commit c32b67a57d
+18
View File
@@ -0,0 +1,18 @@
<?php
include dirname(__FILE__, 5) . '/test/lib/ui.php';
class addTodoTester extends tester
{
/**
* 添加待办。
* Add a todo.
*
* @param string $todoTitle
* @access public
* @return void
*/
public function addTodo($todoTitle, $todoStatus)
{
$this->openUrl('my', 'todo', array('type' => 'all'));
$todoList = $this->loadPage('my', 'todo', array('type' => 'all'));
$todoList->dom->addTodo->click();
$todoList->wait(1);