diff --git a/module/productplan/test/lib/browse.ui.class.php b/module/productplan/test/lib/browse.ui.class.php index 7bc7f7d2a7..2d35517475 100644 --- a/module/productplan/test/lib/browse.ui.class.php +++ b/module/productplan/test/lib/browse.ui.class.php @@ -37,12 +37,12 @@ class browseTester extends tester if ($browseType === 'kanban') { $browsePage->dom->kanbanBtn->click(); - return ($browsePage->dom->orderByBtn) ? $this->success('成功切换到看板模式') : $this->failed('切换到看板模块模式'); + return ($browsePage->dom->orderByBtn) ? $this->success('成功切换到看板模式') : $this->failed('切换到看板模式失败'); } else { $browsePage->dom->listBtn->click(); - return ($browsePage->dom->allTab) ? $this->success('成功切换到列表模式') : $this->failed('切换到列表模块模式'); + return ($browsePage->dom->allTab) ? $this->success('成功切换到列表模式') : $this->failed('切换到列表模式失败'); } } } diff --git a/module/productplan/test/ui/switchbrowsetype.php b/module/productplan/test/ui/switchbrowsetype.php index f37c4de928..bc3969a045 100755 --- a/module/productplan/test/ui/switchbrowsetype.php +++ b/module/productplan/test/ui/switchbrowsetype.php @@ -21,6 +21,7 @@ zendata('productplan')->loadYaml('productplan', false, 2)->gen(10); $tester = new browseTester(); $tester->login(); $planurl['productID'] = 1; + r($tester->switchBrowseType($planurl, 'kanban')) && p('message,status') && e('成功切换到看板模式,SUCCESS');//切换到看板模式 r($tester->switchBrowseType($planurl, 'list')) && p('message,status') && e('成功切换到列表模式,SUCCESS');//切换到列表模式 $tester->closeBrowser();