*[uitest] Add refresh.
This commit is contained in:
@@ -11,8 +11,6 @@ class editExecutionTester extends tester
|
||||
*/
|
||||
public function inputFields($execution)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5);
|
||||
$form = $this->initForm('execution', 'kanban', array('kanbanID' => '2'), 'appIframe-project');
|
||||
$form->wait(1);
|
||||
$form->dom->kanbanSettingInLite->click();
|
||||
@@ -90,6 +88,8 @@ class editExecutionTester extends tester
|
||||
*/
|
||||
public function edit($execution)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5)->refresh();
|
||||
$this->inputFields($execution);
|
||||
if($this->checkFormTips('execution')) return $this->success('编辑看板表单页提示信息正确');
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class kanbanTester extends tester
|
||||
public function checkKanban($col, $num, $groupId = '', $lane = '1')
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5);
|
||||
$this->page->wait(5)->refresh();
|
||||
$form = $this->initForm('execution', 'kanban', array('kanbanID' => '2'), 'appIframe-project');
|
||||
$form->wait(1);
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@ class putoffExecutionTester extends tester
|
||||
*/
|
||||
public function inputFields($execution, $executionId)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5);
|
||||
$form = $this->initForm('execution', 'kanban', array('kanbanID' => $executionId ), 'appIframe-project');
|
||||
$form->wait(1);
|
||||
$form->dom->kanbanSettingInLite->click();
|
||||
@@ -38,6 +36,8 @@ class putoffExecutionTester extends tester
|
||||
*/
|
||||
public function putoff($execution, $executionId)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5)->refresh();
|
||||
$this->inputFields($execution, $executionId);
|
||||
$form = $this->loadPage();
|
||||
$form->wait(1);
|
||||
|
||||
@@ -36,7 +36,6 @@ class startExecutionTester extends tester
|
||||
*/
|
||||
public function start($realBegan, $kanbanId)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->inputFields($realBegan, $kanbanId);
|
||||
$form = $this->initForm('execution', 'view', array('kanbanID' => $kanbanId ), 'appIframe-project');
|
||||
if($form->dom->status->getText() != $this->lang->execution->statusList->doing) return $this->failed('看板状态错误');
|
||||
@@ -56,6 +55,7 @@ class startExecutionTester extends tester
|
||||
public function startWithGreaterDate($realBegan, $kanbanId)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5)->refresh();
|
||||
$this->inputFields($realBegan, $kanbanId);
|
||||
$form = $this->loadPage();
|
||||
$field = $form->dom->realBegan->getValue();
|
||||
|
||||
@@ -13,6 +13,7 @@ class suspendExecutionTester extends tester
|
||||
public function suspend($executionId)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5)->refresh();
|
||||
$form = $this->initForm('execution', 'kanban', array('execution' => $executionId ), 'appIframe-project');
|
||||
$form->wait(1);
|
||||
$form->dom->kanbanSettingInLite->click();
|
||||
|
||||
@@ -14,7 +14,7 @@ class taskExecutionTester extends tester
|
||||
public function checkTab($tab, $expectNum)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5);
|
||||
$this->page->wait(5)->refresh();
|
||||
$form = $this->initForm('execution', 'task', array('execution' => '2'), 'appIframe-project');
|
||||
$form->wait(1);
|
||||
$params = array('allTab', 'unclosedTab', 'myTab', 'involvedTab', 'assignedByMeTab', 'changedByMeTab');
|
||||
@@ -36,8 +36,6 @@ class taskExecutionTester extends tester
|
||||
*/
|
||||
public function batchEditStatus($status)
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5);
|
||||
$form = $this->initForm('execution', 'task', array('execution' => '2'), 'appIframe-project');
|
||||
$form->wait(1);
|
||||
$name = $form->dom->firstName->getText();
|
||||
@@ -65,8 +63,6 @@ class taskExecutionTester extends tester
|
||||
*/
|
||||
public function batchAssign()
|
||||
{
|
||||
$this->switchVision('lite');
|
||||
$this->page->wait(5);
|
||||
$form = $this->initForm('execution', 'task', array('execution' => '2'), 'appIframe-project');
|
||||
$form->wait(1);
|
||||
$name = $form->dom->firstName->getText();
|
||||
|
||||
Reference in New Issue
Block a user