diff --git a/module/execution/test/lib/bug.ui.class.php b/module/execution/test/lib/bug.ui.class.php index bbb0bd5ae0..1987191847 100644 --- a/module/execution/test/lib/bug.ui.class.php +++ b/module/execution/test/lib/bug.ui.class.php @@ -14,7 +14,7 @@ class bugTester extends tester public function checkTab($tab, $expectNum) { $form = $this->initForm('execution', 'bug', array('execution' => '2'), 'appIframe-execution'); - $form->wait(1); + $form->wait(3); $form->dom->$tab->click(); $form->wait(1); if($form->dom->num->getText() == $expectNum) return $this->success($tab . '下显示条数正确'); @@ -32,7 +32,9 @@ class bugTester extends tester public function assignTo($user) { $form = $this->initForm('execution', 'bug', array('execution' => '2'), 'appIframe-execution'); + $form->wait(3); $form->dom->firstAssignedTo->click(); + $form->wait(1); $form->dom->assignedTo->picker($user); $form->dom->submitBtn->click(); $form->wait(1); @@ -52,7 +54,9 @@ class bugTester extends tester public function batchAssignTo() { $form = $this->initForm('execution', 'bug', array('execution' => '2'), 'appIframe-execution'); + $form->wait(3); $form->dom->firstCheckbox->click(); + $form->wait(1); $form->dom->batchAssignBtn->click(); $form->wait(1); $form->dom->assignToAdmin->click(); @@ -75,7 +79,9 @@ class bugTester extends tester public function switchProduct($product, $expectNum) { $form = $this->initForm('execution', 'bug', array('execution' => '2'), 'appIframe-execution'); + $form->wait(3); $form->dom->productNav->click(); + $form->wait(1); $form->dom->$product->click(); $form->wait(1); diff --git a/module/execution/test/lib/editexecution.ui.class.php b/module/execution/test/lib/editexecution.ui.class.php index fdae95a949..d781aeff00 100644 --- a/module/execution/test/lib/editexecution.ui.class.php +++ b/module/execution/test/lib/editexecution.ui.class.php @@ -12,8 +12,9 @@ class editExecutionTester extends tester public function editFields($execution) { $form = $this->initForm('execution', 'view', array('execution' => $execution['id']), 'appIframe-execution'); - $form->wait(1); + $form->wait(3); $form->dom->editBtn->click(); + $form->wait(1); $form = $this->loadPage(); $form->wait(1); if(isset($execution['name'])) $form->dom->name->setValue($execution['name']); @@ -97,6 +98,7 @@ class editExecutionTester extends tester public function checkManageProductsInfo() { $form = $this->loadPage(); + $form->wait(1); $form->dom->waitElement($form->dom->xpath['productsTip'], 10); $text = $form->dom->productsTip->getText(); $info = $this->lang->project->errorNoProducts; diff --git a/module/execution/test/ui/activateexecution.php b/module/execution/test/ui/activateexecution.php index 73fcb2ed07..92f41698b8 100644 --- a/module/execution/test/ui/activateexecution.php +++ b/module/execution/test/ui/activateexecution.php @@ -2,9 +2,27 @@