modify uitest of batchcreateinlite

This commit is contained in:
lixiaoyu
2025-07-11 10:15:23 +08:00
parent 4342433ad6
commit 99979f29db
3 changed files with 6 additions and 11 deletions
+2 -1
View File
@@ -48,7 +48,8 @@ class storyPage extends page
'openTabNum' => '//*[@data-id="unclosed"]/span[2]',
'draftTabNum' => '//*[@data-id="draft"]/span[2]',
'reviewingTabNum' => '//*[@data-id="reviewing"]/span[2]',
'changingTabNum' =>'//*[@data-id="changing"]/span[2]'
'changingTabNum' => '//*[@data-id="changing"]/span[2]',
'firstStory' => '//*[@id="stories"]/div[2]/div[1]/div/div[2]/div/a'
);
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
}
@@ -60,12 +60,9 @@ class batchCreateStory extends tester
}
else
{
$form->dom->searchBtn->click();
$form->wait(1);
$form->dom->value1->setValue($story->name);
$form->dom->searchButton->click();
$form->wait(2);
return ($form->dom->firstStory->getText() == $story->name)
$storyList = $this->initForm('projectstory', 'story', $project, 'appIframe-project');
$storyList->dom->search(array("{$this->lang->story->name},=,{$story->name}"));
return ($storyList->dom->firstStory->getText() == $story->name)
? $this->success('批量创建目标成功')
: $this->failed('批量创建目标失败');
}
+1 -4
View File
@@ -13,10 +13,7 @@ class batchCreatePage extends page
'epicSave' => "//*[@id='zin_epic_batchcreate_formBatch']/div[2]/button[1]",
/*运营管理界面*/
'reviewerPick' => "/html/body/div[1]/div/div/div/div[2]/form/div[1]/table/tbody/tr[1]/td[10]/div/div/select",
'reviewerTip' => "//*[@id='reviewer[1][]Tip']",
'firstStory' => "//*[@id='stories']/div[2]/div[1]/div/div[2]/div/a",
'searchBtn' => "//*[@id='featureBar']/menu/li[7]/button",
'searchButton' => "//*[@id='mainContentCell']/div[1]/div/form/div[2]/button[1]"
'reviewerTip' => "//*[@id='reviewer[1][]Tip']"
);
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
}