From 614fe84f05ac058963cbd0cbe5372df37b165300 Mon Sep 17 00:00:00 2001 From: liyang Date: Fri, 18 Jul 2025 15:46:55 +0800 Subject: [PATCH] * [uitest] add refresh time for switch vision method. --- test/lib/ui.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/lib/ui.php b/test/lib/ui.php index f8cde9c806..568eeae0bd 100644 --- a/test/lib/ui.php +++ b/test/lib/ui.php @@ -241,16 +241,17 @@ class tester extends result * Switch a zentao vision. * * @param string $vision + * @param int $refreshTime * @access public * @return object */ - public function switchVision($vision) + public function switchVision($vision, $refreshTime = 2) { $currentVision = $this->page->getCookie('vision'); if($currentVision) $this->page->deleteCookie('vision'); $this->page->addCookie(array('name' => 'vision', 'value' => $vision)); - $this->page->wait(1)->refresh(); + $this->page->wait($refreshTime)->refresh(); return $this; }