From 6e54eb009167bf22a9c4733ca2fd8079a425edd5 Mon Sep 17 00:00:00 2001 From: lixiaoyu Date: Fri, 20 Sep 2024 11:13:43 +0800 Subject: [PATCH] *[task#128809,done,0.5h,0h] modify code --- module/productplan/test/lib/browse.ui.class.php | 4 ++-- module/productplan/test/ui/switchbrowsetype.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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();