+ [task# 122790] modify ui test files of project.
This commit is contained in:
@@ -11,7 +11,7 @@ class activeprojectTester extends tester
|
||||
*/
|
||||
public function activeProject(array $project)
|
||||
{
|
||||
$form = $this->initForm('project', 'browse','appIframe-project');
|
||||
$form = $this->initForm('project', 'browse', 'appIframe-project');
|
||||
$featureBar = (array)$this->lang->project->featureBar;
|
||||
$featureBar['browse'] = (array)$featureBar['browse'];
|
||||
$form->dom->btn($featureBar['browse']['more'])->click();
|
||||
|
||||
@@ -11,7 +11,7 @@ class closeprojectTester extends tester
|
||||
*/
|
||||
public function closeProject(array $project)
|
||||
{
|
||||
$form = $this->initForm('project', 'browse','appIframe-project');
|
||||
$form = $this->initForm('project', 'browse', 'appIframe-project');
|
||||
$featureBar = (array)$this->lang->project->featureBar;
|
||||
$featureBar['browse'] = (array)$featureBar['browse'];
|
||||
$form->dom->btn($featureBar['browse']['wait'])->click();
|
||||
|
||||
@@ -11,7 +11,7 @@ class editWaterfallTester extends tester
|
||||
*/
|
||||
public function editWaterfall(array $waterfall)
|
||||
{
|
||||
$form = $this->initForm('project', 'edit', array('projecID' => 5),'appIframe-project');
|
||||
$form = $this->initForm('project', 'edit', array('projecID' => 5), 'appIframe-project');
|
||||
$form->dom->name->setValue($waterfall['name']);
|
||||
$form->wait(1);
|
||||
$form->dom->btn($this->lang->save)->click();
|
||||
|
||||
@@ -13,14 +13,11 @@ cid=73
|
||||
chdir(__DIR__);
|
||||
include '../lib/activeproject.ui.class.php';
|
||||
|
||||
zendata('projet')->loadYaml('project', false, 2)->gen(10);
|
||||
$tester = new activeProjectTester();
|
||||
$tester->login();
|
||||
|
||||
$project = array(
|
||||
array(),
|
||||
);
|
||||
$project = array();
|
||||
|
||||
r($tester->activeProject($project['0'])) && p('message') && e('激活项目成功'); //激活项目
|
||||
r($tester->activeProject($project)) && p('message') && e('激活项目成功'); //激活项目
|
||||
|
||||
$tester->closeBrowser();
|
||||
|
||||
@@ -13,14 +13,11 @@ cid=73
|
||||
chdir(__DIR__);
|
||||
include '../lib/closeproject.ui.class.php';
|
||||
|
||||
zendata('projet')->loadYaml('project', false, 2)->gen(10);
|
||||
$tester = new closeProjectTester();
|
||||
$tester->login();
|
||||
|
||||
$project = array(
|
||||
array(),
|
||||
);
|
||||
$project = array();
|
||||
|
||||
r($tester->closeProject($project['0'])) && p('message') && e('关闭项目成功'); //关闭项目
|
||||
r($tester->closeProject($project])) && p('message') && e('关闭项目成功'); //关闭项目
|
||||
|
||||
$tester->closeBrowser();
|
||||
|
||||
@@ -21,7 +21,7 @@ cid=73
|
||||
chdir(__DIR__);
|
||||
include '../lib/createwaterfall.ui.class.php';
|
||||
|
||||
zendata('projet')->loadYaml('project', false, 2)->gen(10);
|
||||
zendata('project')->loadYaml('project', false, 2)->gen(10);
|
||||
$tester = new createWaterfallTester();
|
||||
$tester->login();
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ cid=73
|
||||
chdir(__DIR__);
|
||||
include '../lib/editwaterfall.ui.class.php';
|
||||
|
||||
zendata('projet')->loadYaml('project', false, 2)->gen(10);
|
||||
$tester = new editWaterfallTester();
|
||||
$tester->login();
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ class browsePage extends page
|
||||
'projectName' => "//*[@id='table-project-browse']/div[2]/div[1]/div/div[2]/div/a",
|
||||
'scrumName' => "//*[@id='mainContent']/div[2]/div/div/div[2]/div/div/div[2]/div/a",
|
||||
'moreBtn' => "//*[@id='table-project-browse']/div[2]/div[3]/div/div[1]/div/nav/button[1]/span",
|
||||
'closeBtn' => "//*[@title='关闭项目']",
|
||||
'closeProject' => "//span[text()='关闭项目']",
|
||||
'closeBtn' => "//*[@class='icon item-icon icon-off']",
|
||||
'closeProject' => "//*[@class='modal modal-async load-indicator modal-trans show in']/div/div/div[3]/div/div/form/div[3]/div/button",
|
||||
'closed' => "//*[@id='more']/menu/menu/li[2]/a/div",
|
||||
'activeBtn' => "//*[@title='激活项目']",
|
||||
'activeProject' => "//span[text()='激活项目']",
|
||||
'activeBtn' => "//*[@id='table-project-browse']/div[2]/div[3]/div/div/div/nav/a[1]/i",
|
||||
'activeProject' => "//*[@class='modal modal-async load-indicator modal-trans show in']/div/div/div[3]/div/div/form/div[3]/div/button",
|
||||
);
|
||||
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user