+[task#129333,doing,4h,1h] Add ui function files of project browse tab.

This commit is contained in:
lihuifang
2024-09-27 15:27:56 +08:00
committed by 曹延义
parent 0b38765620
commit c2e42ea51e
@@ -0,0 +1,19 @@
<?php
include dirname(__FILE__, 5) . '/test/lib/ui.php';
class browseTabTester extends tester
{
/**
* 项目列表tab标签数量。
* Project browse tab.
*
* @param string $tab
* @param string $expectNum
* @access public
*/
public function checkBrowseTab($tab, $expectNum)
{
$form = $this->initForm('project', 'browse', '', 'appIframe-project');
$tabs = array('all', 'undone', 'wait', 'doing');
if(!in_array($tab, $tabs)) $form->dom->moreTab->click();
$form->wait(2);
$form->dom->$tab->click();