From d7e007f8ec9be0158f7d704ea384a78692a55bb6 Mon Sep 17 00:00:00 2001 From: yulujie Date: Fri, 18 Jul 2025 17:00:17 +0800 Subject: [PATCH] *[task#146820,doing,1h,2h] Modify waittime. --- module/execution/test/lib/activateinlite.ui.class.php | 3 +-- module/execution/test/lib/closeinlite.ui.class.php | 3 +-- module/execution/test/lib/createinlite.ui.class.php | 3 +-- module/execution/test/lib/editinlite.ui.class.php | 3 +-- module/execution/test/lib/kanbaninlite.ui.class.php | 3 +-- module/execution/test/lib/putoffinlite.ui.class.php | 3 +-- module/execution/test/lib/startinlite.ui.class.php | 3 +-- module/execution/test/lib/suspendinlite.ui.class.php | 3 +-- module/execution/test/lib/taskinlite.ui.class.php | 3 +-- 9 files changed, 9 insertions(+), 18 deletions(-) diff --git a/module/execution/test/lib/activateinlite.ui.class.php b/module/execution/test/lib/activateinlite.ui.class.php index d3ad4ecefe..2884ce3c37 100644 --- a/module/execution/test/lib/activateinlite.ui.class.php +++ b/module/execution/test/lib/activateinlite.ui.class.php @@ -60,8 +60,7 @@ class activateExecutionTester extends tester */ public function activateWithLessEnd($end, $executionId) { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $this->inputFields($end, $executionId); $form = $this->loadPage(); $form->wait(1); diff --git a/module/execution/test/lib/closeinlite.ui.class.php b/module/execution/test/lib/closeinlite.ui.class.php index de9f150472..2e07cb768e 100644 --- a/module/execution/test/lib/closeinlite.ui.class.php +++ b/module/execution/test/lib/closeinlite.ui.class.php @@ -58,8 +58,7 @@ class closeExecutionTester extends tester */ public function closeWithGreaterDate($realEnd, $executionId) { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $this->inputFields($realEnd, $executionId); $form = $this->loadPage(); $field = $form->dom->realEndField->getText(); diff --git a/module/execution/test/lib/createinlite.ui.class.php b/module/execution/test/lib/createinlite.ui.class.php index 8ca2c54771..cbd20e1dbb 100755 --- a/module/execution/test/lib/createinlite.ui.class.php +++ b/module/execution/test/lib/createinlite.ui.class.php @@ -88,8 +88,7 @@ class createExecutionTester extends tester */ public function create($execution, $module = 'execution') { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $this->inputFields($execution); /* 创建成功会跳转至看板列表全部标签下,从url中获取status字段内容 */ diff --git a/module/execution/test/lib/editinlite.ui.class.php b/module/execution/test/lib/editinlite.ui.class.php index 90a0900958..31e73869e9 100755 --- a/module/execution/test/lib/editinlite.ui.class.php +++ b/module/execution/test/lib/editinlite.ui.class.php @@ -88,8 +88,7 @@ class editExecutionTester extends tester */ public function edit($execution) { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $this->inputFields($execution); if($this->checkFormTips('execution')) return $this->success('编辑看板表单页提示信息正确'); diff --git a/module/execution/test/lib/kanbaninlite.ui.class.php b/module/execution/test/lib/kanbaninlite.ui.class.php index ddb1331857..49241d4c2a 100644 --- a/module/execution/test/lib/kanbaninlite.ui.class.php +++ b/module/execution/test/lib/kanbaninlite.ui.class.php @@ -15,8 +15,7 @@ class kanbanTester extends tester */ public function checkKanban($col, $num, $groupId = '', $lane = '1') { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $form = $this->initForm('execution', 'kanban', array('kanbanID' => '2'), 'appIframe-project'); $form->wait(1); diff --git a/module/execution/test/lib/putoffinlite.ui.class.php b/module/execution/test/lib/putoffinlite.ui.class.php index d4ff0f3631..666d8d7dfd 100644 --- a/module/execution/test/lib/putoffinlite.ui.class.php +++ b/module/execution/test/lib/putoffinlite.ui.class.php @@ -36,8 +36,7 @@ class putoffExecutionTester extends tester */ public function putoff($execution, $executionId) { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $this->inputFields($execution, $executionId); $form = $this->loadPage(); $form->wait(1); diff --git a/module/execution/test/lib/startinlite.ui.class.php b/module/execution/test/lib/startinlite.ui.class.php index fc1e83481e..62cbd9d7f7 100644 --- a/module/execution/test/lib/startinlite.ui.class.php +++ b/module/execution/test/lib/startinlite.ui.class.php @@ -54,8 +54,7 @@ class startExecutionTester extends tester */ public function startWithGreaterDate($realBegan, $kanbanId) { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $this->inputFields($realBegan, $kanbanId); $form = $this->loadPage(); $field = $form->dom->realBegan->getValue(); diff --git a/module/execution/test/lib/suspendinlite.ui.class.php b/module/execution/test/lib/suspendinlite.ui.class.php index cdc27b0b4b..d2b2e62fd4 100644 --- a/module/execution/test/lib/suspendinlite.ui.class.php +++ b/module/execution/test/lib/suspendinlite.ui.class.php @@ -12,8 +12,7 @@ class suspendExecutionTester extends tester */ public function suspend($executionId) { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $form = $this->initForm('execution', 'kanban', array('execution' => $executionId ), 'appIframe-project'); $form->wait(1); $form->dom->kanbanSettingInLite->click(); diff --git a/module/execution/test/lib/taskinlite.ui.class.php b/module/execution/test/lib/taskinlite.ui.class.php index 60d3610633..2b624525ce 100755 --- a/module/execution/test/lib/taskinlite.ui.class.php +++ b/module/execution/test/lib/taskinlite.ui.class.php @@ -13,8 +13,7 @@ class taskExecutionTester extends tester */ public function checkTab($tab, $expectNum) { - $this->switchVision('lite'); - $this->page->wait(5)->refresh(); + $this->switchVision('lite', 5); $form = $this->initForm('execution', 'task', array('execution' => '2'), 'appIframe-project'); $form->wait(1); $params = array('allTab', 'unclosedTab', 'myTab', 'involvedTab', 'assignedByMeTab', 'changedByMeTab');